Skip to content

Commit

Permalink
Remove Guild#region
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 committed Aug 17, 2021
1 parent b6f93de commit 6fcfcc7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ declare namespace Eris {
premiumSubscriptionCount?: number;
premiumTier: PremiumTier;
publicUpdatesChannelID: string | null;
region: string;
rulesChannelID: string | null;
splash: string | null;
systemChannelFlags: number;
Expand Down Expand Up @@ -647,7 +646,6 @@ declare namespace Eris {
defaultNotifications?: DefaultNotifications;
explicitContentFilter?: ExplicitContentFilter;
icon?: string;
region?: string;
roles?: PartialRole[];
systemChannelID: string;
verificationLevel?: VerificationLevel;
Expand Down Expand Up @@ -716,7 +714,6 @@ declare namespace Eris {
ownerID?: string;
preferredLocale?: string;
publicUpdatesChannelID?: string;
region?: string;
rulesChannelID?: string;
splash?: string;
systemChannelFlags?: number;
Expand Down Expand Up @@ -2083,7 +2080,6 @@ declare namespace Eris {
primaryCategory?: DiscoveryCategory;
primaryCategoryID?: number;
publicUpdatesChannelID: string;
region: string;
roles: Collection<Role>;
rulesChannelID: string | null;
shard: Shard;
Expand Down
4 changes: 0 additions & 4 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object>} [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
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions lib/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Role>} 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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1047,7 +1042,6 @@ class Guild extends Base {
"primaryCategory",
"primaryCategoryID",
"publicUpdatesChannelID",
"region",
"roles",
"rulesChannelID",
"splash",
Expand Down

0 comments on commit 6fcfcc7

Please sign in to comment.