diff --git a/index.d.ts b/index.d.ts index 3d42ec399..a2dd56a46 100644 --- a/index.d.ts +++ b/index.d.ts @@ -419,7 +419,6 @@ declare namespace Eris { premiumSubscriptionCount?: number; premiumTier: PremiumTier; publicUpdatesChannelID: string | null; - region: string; rulesChannelID: string | null; splash: string | null; systemChannelFlags: number; @@ -647,7 +646,6 @@ declare namespace Eris { defaultNotifications?: DefaultNotifications; explicitContentFilter?: ExplicitContentFilter; icon?: string; - region?: string; roles?: PartialRole[]; systemChannelID: string; verificationLevel?: VerificationLevel; @@ -716,7 +714,6 @@ declare namespace Eris { ownerID?: string; preferredLocale?: string; publicUpdatesChannelID?: string; - region?: string; rulesChannelID?: string; splash?: string; systemChannelFlags?: number; @@ -2083,7 +2080,6 @@ declare namespace Eris { primaryCategory?: DiscoveryCategory; primaryCategoryID?: number; publicUpdatesChannelID: string; - region: string; roles: Collection; rulesChannelID: string | null; shard: Shard; diff --git a/lib/Client.js b/lib/Client.js index 775d837d0..694a5eb1f 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -504,7 +504,6 @@ class Client extends EventEmitter { * @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.icon] The guild icon as a base64 data URI. Note: base64 strings alone are not base64 data URI strings - * @arg {String} [options.region] The region of the guild * @arg {Array} [options.roles] The new roles of the guild, the first one is the @everyone role. IDs are placeholders which allow channel overwrites. * @arg {String} [options.systemChannelID] The ID of the system channel * @arg {Number} [options.verificationLevel] The guild verification level @@ -517,7 +516,6 @@ class Client extends EventEmitter { return this.requestHandler.request("POST", Endpoints.GUILDS, true, { name: name, - region: options.region, icon: options.icon, verification_level: options.verificationLevel, default_message_notifications: options.defaultNotifications, @@ -1098,7 +1096,6 @@ class Client extends EventEmitter { * @arg {String} [options.ownerID] The ID of the user to transfer server ownership to (bot user must be owner) * @arg {String} [options.preferredLocale] Preferred "COMMUNITY" guild language used in server discovery and notices from Discord * @arg {String} [options.publicUpdatesChannelID] The id of the channel where admins and moderators of "COMMUNITY" guilds receive notices from Discord - * @arg {String} [options.region] The region of the guild * @arg {String} [options.rulesChannelID] The id of the channel where "COMMUNITY" guilds display rules and/or guidelines * @arg {String} [options.splash] The guild splash image as a base64 data URI (VIP only). Note: base64 strings alone are not base64 data URI strings * @arg {Number} [options.systemChannelFlags] The flags for the system channel @@ -1110,7 +1107,6 @@ class Client extends EventEmitter { editGuild(guildID, options, reason) { return this.requestHandler.request("PATCH", Endpoints.GUILD(guildID), true, { name: options.name, - region: options.region, icon: options.icon, verification_level: options.verificationLevel, default_message_notifications: options.defaultNotifications, diff --git a/lib/gateway/Shard.js b/lib/gateway/Shard.js index 495194071..f0f788f8e 100644 --- a/lib/gateway/Shard.js +++ b/lib/gateway/Shard.js @@ -1246,7 +1246,6 @@ class Shard extends EventEmitter { premiumSubscriptionCount: guild.premiumSubscriptionCount, premiumTier: guild.premiumTier, publicUpdatesChannelID: guild.publicUpdatesChannelID, - region: guild.region, rulesChannelID: guild.rulesChannelID, splash: guild.splash, systemChannelFlags: guild.systemChannelFlags, @@ -1280,7 +1279,6 @@ class Shard extends EventEmitter { * @prop {Number?} oldGuild.premiumSubscriptionCount The total number of users currently boosting this guild * @prop {Number} oldGuild.premiumTier Nitro boost level of the guild * @prop {String?} oldGuild.publicUpdatesChannelID ID of the guild's updates channel if the guild has "COMMUNITY" features - * @prop {String} oldGuild.region The region of the guild * @prop {String?} oldGuild.rulesChannelID The channel where "COMMUNITY" guilds display rules and/or guidelines * @prop {String?} oldGuild.splash The hash of the guild splash image, or null if no splash (VIP only) * @prop {Number} oldGuild.systemChannelFlags the flags for the system channel diff --git a/lib/structures/Guild.js b/lib/structures/Guild.js index ebfb92ff9..9962ab6cc 100644 --- a/lib/structures/Guild.js +++ b/lib/structures/Guild.js @@ -56,7 +56,6 @@ const ThreadChannel = require("./ThreadChannel"); * @prop {Object?} primaryCategory The guild's primary discovery category * @prop {Number?} primaryCategoryID The guild's primary discovery category ID * @prop {String?} publicUpdatesChannelID ID of the guild's updates channel if the guild has "COMMUNITY" features -* @prop {String} region The region of the guild * @prop {Collection} roles Collection of Roles in the guild * @prop {String?} rulesChannelID The channel where "COMMUNITY" guilds display rules and/or guidelines * @prop {Shard} shard The Shard that owns the guild @@ -223,9 +222,6 @@ class Guild extends Base { if(data.banner !== undefined) { this.banner = data.banner; } - if(data.region !== undefined) { - this.region = data.region; - } if(data.owner_id !== undefined) { this.ownerID = data.owner_id; } @@ -526,7 +522,6 @@ class Guild extends Base { * @arg {String} [options.ownerID] The ID of the member to transfer guild ownership to (bot user must be owner) * @arg {String} [options.preferredLocale] Preferred "COMMUNITY" guild language used in server discovery and notices from Discord * @arg {String} [options.publicUpdatesChannelID] The id of the channel where admins and moderators of "COMMUNITY" guilds receive notices from Discord - * @arg {String} [options.region] The region of the guild * @arg {String} [options.rulesChannelID] The id of the channel where "COMMUNITY" guilds display rules and/or guidelines * @arg {String} [options.splash] The guild splash image as a base64 data URI (VIP only). Note: base64 strings alone are not base64 data URI strings * @arg {Number} [options.systemChannelFlags] The flags for the system channel @@ -1047,7 +1042,6 @@ class Guild extends Base { "primaryCategory", "primaryCategoryID", "publicUpdatesChannelID", - "region", "roles", "rulesChannelID", "splash",