Skip to content

Commit

Permalink
feat(Guild): boost progress bars (#227)
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
  • Loading branch information
suneettipirneni and kyranet committed Nov 30, 2021
1 parent 51dee6e commit 47382b6
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deno/payloads/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 4 additions & 0 deletions deno/payloads/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
8 changes: 8 additions & 0 deletions deno/rest/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions deno/rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions payloads/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 4 additions & 0 deletions payloads/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
8 changes: 8 additions & 0 deletions rest/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 47382b6

Please sign in to comment.