From 47382b6183a1d232053fef23691d423f8af88f88 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Tue, 30 Nov 2021 14:12:26 -0500 Subject: [PATCH] feat(Guild): boost progress bars (#227) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antonio Román --- deno/payloads/v8/guild.ts | 4 ++++ deno/payloads/v9/guild.ts | 4 ++++ deno/rest/v8/guild.ts | 8 ++++++++ deno/rest/v9/guild.ts | 8 ++++++++ payloads/v8/guild.ts | 4 ++++ payloads/v9/guild.ts | 4 ++++ rest/v8/guild.ts | 8 ++++++++ rest/v9/guild.ts | 8 ++++++++ 8 files changed, 48 insertions(+) diff --git a/deno/payloads/v8/guild.ts b/deno/payloads/v8/guild.ts index 1ef602048..f193f3658 100644 --- a/deno/payloads/v8/guild.ts +++ b/deno/payloads/v8/guild.ts @@ -326,6 +326,10 @@ export interface APIGuild extends APIPartialGuild { * See https://discord.com/developers/docs/resources/sticker#sticker-object */ stickers: APISticker[]; + /** + * Whether the guild has the boost progress bar enabled. + */ + premium_progress_bar_enabled: boolean; /** * The scheduled events in the guild * diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index ba67eda5a..97dc4d436 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -334,6 +334,10 @@ export interface APIGuild extends APIPartialGuild { * See https://discord.com/developers/docs/resources/sticker#sticker-object */ stickers: APISticker[]; + /** + * Whether the guild has the boost progress bar enabled. + */ + premium_progress_bar_enabled: boolean; /** * The scheduled events in the guild * diff --git a/deno/rest/v8/guild.ts b/deno/rest/v8/guild.ts index dbfc17752..8266542b2 100644 --- a/deno/rest/v8/guild.ts +++ b/deno/rest/v8/guild.ts @@ -122,6 +122,10 @@ export interface RESTPostAPIGuildsJSONBody { * See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ system_channel_flags?: GuildSystemChannelFlags; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** @@ -249,6 +253,10 @@ export interface RESTPatchAPIGuildJSONBody { * The description for the guild, if the guild is discoverable */ description?: string | null; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index b624ec10e..03a020e8a 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -123,6 +123,10 @@ export interface RESTPostAPIGuildsJSONBody { * See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ system_channel_flags?: GuildSystemChannelFlags; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** @@ -250,6 +254,10 @@ export interface RESTPatchAPIGuildJSONBody { * The description for the guild, if the guild is discoverable */ description?: string | null; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** diff --git a/payloads/v8/guild.ts b/payloads/v8/guild.ts index 2cd6b1d0e..1ec289ef9 100644 --- a/payloads/v8/guild.ts +++ b/payloads/v8/guild.ts @@ -326,6 +326,10 @@ export interface APIGuild extends APIPartialGuild { * See https://discord.com/developers/docs/resources/sticker#sticker-object */ stickers: APISticker[]; + /** + * Whether the guild has the boost progress bar enabled. + */ + premium_progress_bar_enabled: boolean; /** * The scheduled events in the guild * diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 4a4d47683..66def272b 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -334,6 +334,10 @@ export interface APIGuild extends APIPartialGuild { * See https://discord.com/developers/docs/resources/sticker#sticker-object */ stickers: APISticker[]; + /** + * Whether the guild has the boost progress bar enabled. + */ + premium_progress_bar_enabled: boolean; /** * The scheduled events in the guild * diff --git a/rest/v8/guild.ts b/rest/v8/guild.ts index 0b757f3e5..c1fe885f9 100644 --- a/rest/v8/guild.ts +++ b/rest/v8/guild.ts @@ -122,6 +122,10 @@ export interface RESTPostAPIGuildsJSONBody { * See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ system_channel_flags?: GuildSystemChannelFlags; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** @@ -249,6 +253,10 @@ export interface RESTPatchAPIGuildJSONBody { * The description for the guild, if the guild is discoverable */ description?: string | null; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index d8e17b357..92f5a5d23 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -123,6 +123,10 @@ export interface RESTPostAPIGuildsJSONBody { * See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ system_channel_flags?: GuildSystemChannelFlags; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /** @@ -250,6 +254,10 @@ export interface RESTPatchAPIGuildJSONBody { * The description for the guild, if the guild is discoverable */ description?: string | null; + /** + * Whether the boosts progress bar should be enabled. + */ + premium_progress_bar_enabled?: boolean; } /**