Skip to content

Commit

Permalink
Support discoverySplash, features in editGuild() (#1033)
Browse files Browse the repository at this point in the history
Co-authored-by: bsian03 <[email protected]>
Co-authored-by: abalabahaha <[email protected]>
  • Loading branch information
3 people authored Mar 25, 2021
1 parent fc038fa commit 9d7e05e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ declare namespace Eris {
banner?: string;
defaultNotifications?: number;
description?: string;
discoverySplash?: string;
explicitContentFilter?: number;
features?: string[];
icon?: string;
name?: string;
ownerID?: string;
Expand All @@ -618,7 +620,7 @@ declare namespace Eris {
region?: string;
rulesChannelID?: string;
splash?: string;
systemChannelFlags: 0 | 1 | 2;
systemChannelFlags?: 0 | 1 | 2;
systemChannelID?: string;
verificationLevel?: number;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,9 @@ class Client extends EventEmitter {
* @arg {String} [options.banner] The guild banner image as a base64 data URI (VIP only). Note: base64 strings alone are not base64 data URI strings
* @arg {Number} [options.defaultNotifications] The default notification settings for the guild. 0 is "All Messages", 1 is "Only @mentions".
* @arg {String} [options.description] The description for the guild (VIP only)
* @arg {String} [options.discoverySplash] The guild discovery splash image as a base64 data URI (VIP only). Note: base64 strings alone are not base64 data URI strings
* @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 {Array<String>} [options.features] The enabled features for the guild. Note that only certain features can be toggled with the API
* @arg {String} [options.icon] The guild icon as a base64 data URI. Note: base64 strings alone are not base64 data URI strings
* @arg {String} [options.name] The name of the guild
* @arg {String} [options.ownerID] The ID of the user to transfer server ownership to (bot user must be owner)
Expand Down Expand Up @@ -1008,6 +1010,8 @@ class Client extends EventEmitter {
splash: options.splash,
banner: options.banner,
description: options.description,
discovery_splash: options.discoverySplash,
features: options.features,
reason: reason
}).then((guild) => new Guild(guild, this));
}
Expand Down
2 changes: 2 additions & 0 deletions lib/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,9 @@ class Guild extends Base {
* @arg {String} [options.banner] The guild banner image as a base64 data URI (VIP only). Note: base64 strings alone are not base64 data URI strings
* @arg {Number} [options.defaultNotifications] The default notification settings for the guild. 0 is "All Messages", 1 is "Only @mentions".
* @arg {String} [options.description] The description for the guild (VIP only)
* @arg {String} [options.discoverySplash] The guild discovery splash image as a base64 data URI (VIP only). Note: base64 strings alone are not base64 data URI strings
* @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 {Array<String>} [options.features] The enabled features for the guild. Note that only certain features can be toggled with the API
* @arg {String} [options.icon] The guild icon as a base64 data URI. Note: base64 strings alone are not base64 data URI strings
* @arg {String} [options.name] The name of the guild
* @arg {String} [options.ownerID] The ID of the member to transfer guild ownership to (bot user must be owner)
Expand Down

0 comments on commit 9d7e05e

Please sign in to comment.