Compare commits

..

5 Commits

Author SHA1 Message Date
Vlad Frangu
52c91f8f73 chore(release): 0.25.2 🎉 (#249) 2021-11-30 22:28:16 +02:00
Suneet Tipirneni
47382b6183 feat(Guild): boost progress bars (#227)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-11-30 21:12:26 +02:00
PikaDude
51dee6e0e5 fix(APISelectMenuComponent): options property is required (#248) 2021-11-30 20:11:44 +02:00
Vlad Frangu
3ff85eede4 chore(release): 0.25.1 🎉 (#246) 2021-11-30 13:15:45 +02:00
Kot
44c0f05cb2 fix(deno): faulty import paths for guild scheduled events (#245) 2021-11-30 12:11:41 +02:00
20 changed files with 91 additions and 11 deletions

View File

@@ -1,3 +1,19 @@
## [0.25.2](https://github.com/discordjs/discord-api-types/compare/0.25.1...0.25.2) (2021-11-30)
### Bug Fixes
- **APISelectMenuComponent:** `options` property is required ([#248](https://github.com/discordjs/discord-api-types/issues/248)) ([51dee6e](https://github.com/discordjs/discord-api-types/commit/51dee6e0e5bb4d749b9f0436e7ec9d4793e56567))
### Features
- **Guild:** boost progress bars ([#227](https://github.com/discordjs/discord-api-types/issues/227)) ([47382b6](https://github.com/discordjs/discord-api-types/commit/47382b6183a1d232053fef23691d423f8af88f88))
## [0.25.1](https://github.com/discordjs/discord-api-types/compare/0.25.0...0.25.1) (2021-11-30)
### Bug Fixes
- **deno:** faulty import paths for guild scheduled events ([#245](https://github.com/discordjs/discord-api-types/issues/245)) ([44c0f05](https://github.com/discordjs/discord-api-types/commit/44c0f05cb2fc2b9ea50745530ae94a669a839594))
# [0.25.0](https://github.com/discordjs/discord-api-types/compare/0.24.0...0.25.0) (2021-11-29)
### Bug Fixes

View File

@@ -1,3 +1,19 @@
## [0.25.2](https://github.com/discordjs/discord-api-types/compare/0.25.1...0.25.2) (2021-11-30)
### Bug Fixes
- **APISelectMenuComponent:** `options` property is required ([#248](https://github.com/discordjs/discord-api-types/issues/248)) ([51dee6e](https://github.com/discordjs/discord-api-types/commit/51dee6e0e5bb4d749b9f0436e7ec9d4793e56567))
### Features
- **Guild:** boost progress bars ([#227](https://github.com/discordjs/discord-api-types/issues/227)) ([47382b6](https://github.com/discordjs/discord-api-types/commit/47382b6183a1d232053fef23691d423f8af88f88))
## [0.25.1](https://github.com/discordjs/discord-api-types/compare/0.25.0...0.25.1) (2021-11-30)
### Bug Fixes
- **deno:** faulty import paths for guild scheduled events ([#245](https://github.com/discordjs/discord-api-types/issues/245)) ([44c0f05](https://github.com/discordjs/discord-api-types/commit/44c0f05cb2fc2b9ea50745530ae94a669a839594))
# [0.25.0](https://github.com/discordjs/discord-api-types/compare/0.24.0...0.25.0) (2021-11-29)
### Bug Fixes

View File

@@ -1027,7 +1027,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options?: APISelectMenuOption[];
options: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -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
*

View File

@@ -1156,7 +1156,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options?: APISelectMenuOption[];
options: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -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
*

View File

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

View File

@@ -7,7 +7,7 @@ import type {
GuildScheduledEventStatus,
APIGuildMember,
APIUser,
} from '../../payloads/v8.ts';
} from '../../v8.ts';
/**
* https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild

View File

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

View File

@@ -7,7 +7,7 @@ import type {
GuildScheduledEventStatus,
APIGuildMember,
APIUser,
} from '../../payloads/v9.ts';
} from '../../v9.ts';
/**
* https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild

4
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{
"name": "discord-api-types",
"version": "0.25.0",
"version": "0.25.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.25.0",
"version": "0.25.2",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.14.6",

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.25.0",
"version": "0.25.2",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"main": "./v9.js",
"module": "./v9.mjs",

View File

@@ -1027,7 +1027,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options?: APISelectMenuOption[];
options: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -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
*

View File

@@ -1156,7 +1156,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options?: APISelectMenuOption[];
options: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -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
*

View File

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

View File

@@ -7,7 +7,7 @@ import type {
GuildScheduledEventStatus,
APIGuildMember,
APIUser,
} from '../../payloads/v8';
} from '../../v8';
/**
* https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild

View File

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

View File

@@ -7,7 +7,7 @@ import type {
GuildScheduledEventStatus,
APIGuildMember,
APIUser,
} from '../../payloads/v9';
} from '../../v9';
/**
* https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild