Skip to content

Commit

Permalink
Add explicitContentFilter in editGuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Niputi committed May 27, 2019
1 parent c48b74c commit ec6b8de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Expand Up @@ -382,6 +382,7 @@ declare module "eris" {
icon?: string;
verificationLevel?: number;
defaultNotifications?: number;
explicitContentFilter?: number;
afkChannelID?: string;
afkTimeout?: number;
ownerID?: string;
Expand Down
2 changes: 2 additions & 0 deletions lib/Client.js
Expand Up @@ -1407,6 +1407,7 @@ class Client extends EventEmitter {
* @arg {String} [options.icon] The guild icon as a base64 data URI. Note: base64 strings alone are not base64 data URI strings
* @arg {Number} [options.verificationLevel] The guild verification level
* @arg {Number} [options.defaultNotifications] The default notification settings for the guild. 0 is "All Messages", 1 is "Only @mentions".
* @arg {Number} [options.explicitContentFilter] The level of the explicit content filter for messages/images in the guild. 0 disables message scanning, 1 enables scanning the messages of members without roles, 2 enables scanning for all messages.
* @arg {String} [options.systemChannelID] The ID of the system channel
* @arg {String} [options.afkChannelID] The ID of the AFK voice channel
* @arg {Number} [options.afkTimeout] The AFK timeout in seconds
Expand All @@ -1423,6 +1424,7 @@ class Client extends EventEmitter {
icon: options.icon,
verification_level: options.verificationLevel,
default_message_notifications: options.defaultNotifications,
explicit_content_filter: options.explicitContentFilter,
system_channel_id: options.systemChannelID,
afk_channel_id: options.afkChannelID,
afk_timeout: options.afkTimeout,
Expand Down
1 change: 1 addition & 0 deletions lib/structures/Guild.js
Expand Up @@ -509,6 +509,7 @@ class Guild extends Base {
* @arg {String} [options.icon] The guild icon as a base64 data URI. Note: base64 strings alone are not base64 data URI strings
* @arg {Number} [options.verificationLevel] The guild verification level
* @arg {Number} [options.defaultNotifications] The default notification settings for the guild. 0 is "All Messages", 1 is "Only @mentions".
* @arg {Number} [options.explicitContentFilter] The level of the explicit content filter for messages/images in the guild. 0 disables message scanning, 1 enables scanning the messages of members without roles, 2 enables scanning for all messages.
* @arg {String} [options.systemChannelID] The ID of the system channel
* @arg {String} [options.afkChannelID] The ID of the AFK voice channel
* @arg {Number} [options.afkTimeout] The AFK timeout in seconds
Expand Down

0 comments on commit ec6b8de

Please sign in to comment.