diff --git a/deno/payloads/v10/_interactions/applicationCommands.ts b/deno/payloads/v10/_interactions/applicationCommands.ts index b17b8682..9dc50e75 100644 --- a/deno/payloads/v10/_interactions/applicationCommands.ts +++ b/deno/payloads/v10/_interactions/applicationCommands.ts @@ -95,15 +95,21 @@ export interface APIApplicationCommand { */ default_permission?: boolean; /** - * Indicates whether the command is age-restricted, defaults to `false` + * Indicates whether the command is age-restricted + * + * @defaultValue `false` */ nsfw?: boolean; /** - * Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])` + * Installation context(s) where the command is available, only for globally-scoped commands + * + * @defaultValue `[ApplicationIntegrationType.GuildInstall]` */ integration_types?: ApplicationIntegrationType[]; /** - * Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`. + * Interaction context(s) where the command can be used, only for globally-scoped commands + * + * @defaultValue `[InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]` */ contexts?: InteractionContextType[] | null; /** diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 20b99c7e..3a983e70 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -363,7 +363,9 @@ export interface APIThreadOnlyChannel { /** - * The default layout type used to display posts in a forum channel. Defaults to `0`, which indicates a layout view has not been set by a channel admin + * The default layout type used to display posts in a forum channel + * + * @defaultValue `ForumLayoutType.NotSet` which indicates a layout view has not been set by a channel admin */ default_forum_layout: ForumLayoutType; } @@ -1550,7 +1552,7 @@ export interface APIAllowedMentions { */ users?: Snowflake[]; /** - * For replies, whether to mention the author of the message being replied to (default false) + * For replies, whether to mention the author of the message being replied to * * @defaultValue `false` */ diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index 858fad94..d5d1820e 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -223,7 +223,7 @@ export interface APIGuild extends APIPartialGuild { */ premium_subscription_count?: number; /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @defaultValue `"en-US"` */ @@ -291,7 +291,7 @@ export interface APIGuild extends APIPartialGuild { */ export interface APIPartialInteractionGuild extends Pick { /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @unstable https://github.com/discord/discord-api-docs/issues/6938 * @defaultValue `"en-US"` @@ -682,7 +682,9 @@ export interface APIGuildMember { */ mute: boolean; /** - * Guild member flags represented as a bit set, defaults to `0` + * Guild member flags represented as a bit set + * + * @defaultValue `0` */ flags: GuildMemberFlags; /** diff --git a/deno/payloads/v9/_interactions/applicationCommands.ts b/deno/payloads/v9/_interactions/applicationCommands.ts index c4f1af0e..ed9fb0b6 100644 --- a/deno/payloads/v9/_interactions/applicationCommands.ts +++ b/deno/payloads/v9/_interactions/applicationCommands.ts @@ -95,15 +95,19 @@ export interface APIApplicationCommand { */ default_permission?: boolean; /** - * Indicates whether the command is age-restricted, defaults to `false` + * Indicates whether the command is age-restricted */ nsfw?: boolean; /** - * Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])` + * Installation context(s) where the command is available, only for globally-scoped commands + * + * @defaultValue `[ApplicationIntegrationType.GuildInstall]` */ integration_types?: ApplicationIntegrationType[]; /** - * Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`. + * Interaction context(s) where the command can be used, only for globally-scoped commands + * + * @defaultValue `[InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]` */ contexts?: InteractionContextType[] | null; /** diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index eb97304c..a9b2a6b8 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -363,7 +363,9 @@ export interface APIThreadOnlyChannel { /** - * The default layout type used to display posts in a forum channel. Defaults to `0`, which indicates a layout view has not been set by a channel admin + * The default layout type used to display posts in a forum channel + * + * @defaultValue `ForumLayoutType.NotSet` which indicates a layout view has not been set by a channel admin */ default_forum_layout: ForumLayoutType; } @@ -1549,7 +1551,7 @@ export interface APIAllowedMentions { */ users?: Snowflake[]; /** - * For replies, whether to mention the author of the message being replied to (default false) + * For replies, whether to mention the author of the message being replied to * * @defaultValue `false` */ diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index e34297bb..753b5536 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -223,7 +223,7 @@ export interface APIGuild extends APIPartialGuild { */ premium_subscription_count?: number; /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @defaultValue `"en-US"` */ @@ -291,7 +291,7 @@ export interface APIGuild extends APIPartialGuild { */ export interface APIPartialInteractionGuild extends Pick { /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @unstable https://github.com/discord/discord-api-docs/issues/6938 * @defaultValue `"en-US"` @@ -674,7 +674,9 @@ export interface APIGuildMember { */ mute: boolean; /** - * Guild member flags represented as a bit set, defaults to `0` + * Guild member flags represented as a bit set + * + * @defaultValue `0` */ flags: GuildMemberFlags; /** diff --git a/deno/rest/v10/channel.ts b/deno/rest/v10/channel.ts index 6b1ff63f..ef5dc5b8 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -709,11 +709,9 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * The type of thread to create * - * In API v9 and v10, `type` defaults to `PRIVATE_THREAD`. - * In a future API version this will be changed to be a required field, with no default. - * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object-channel-types} - * @defaultValue `ChannelType.PrivateThread` + * @defaultValue `ChannelType.PrivateThread` in API v9 and v10. + * In a future API version this will be changed to be a required field, with no default. */ type?: ThreadChannelType | undefined; /** @@ -765,7 +763,9 @@ export interface RESTGetAPIChannelThreadMembersQuery { */ after?: Snowflake; /** - * Max number of thread members to return (1-100). Defaults to 100 + * Max number of thread members to return (1-100) + * + * @defaultValue `100` */ limit?: number; } diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index 55532b33..439e265a 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -310,7 +310,7 @@ export interface RESTPatchAPIGuildJSONBody { */ public_updates_channel_id?: Snowflake | null | undefined; /** - * The preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild used in server discovery and notices from Discord * * @defaultValue `"en-US"` (if the value is set to `null`) */ diff --git a/deno/rest/v10/monetization.ts b/deno/rest/v10/monetization.ts index 838b1493..55fb3898 100644 --- a/deno/rest/v10/monetization.ts +++ b/deno/rest/v10/monetization.ts @@ -33,11 +33,15 @@ export interface RESTGetAPIEntitlementsQuery { */ guild_id?: Snowflake | undefined; /** - * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default + * Whether ended entitlements should be omitted + * + * @defaultValue `false` ended entitlements are included by default */ exclude_ended?: boolean | undefined; /** - * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default + * Whether deleted entitlements should be omitted + * + * @defaultValue `true` deleted entitlements are not included by default */ exclude_deleted?: boolean | undefined; } diff --git a/deno/rest/v10/webhook.ts b/deno/rest/v10/webhook.ts index d8cc335b..7b7dbd0f 100644 --- a/deno/rest/v10/webhook.ts +++ b/deno/rest/v10/webhook.ts @@ -178,7 +178,7 @@ export type RESTPostAPIWebhookWithTokenFormDataBody = export interface RESTPostAPIWebhookWithTokenQuery { /** * Waits for server confirmation of message send before response, and returns the created message body - * (defaults to `false`; when `false` a message that is not saved does not return an error) + * (when `false` a message that is not saved does not return an error) * * @defaultValue `false` */ @@ -191,7 +191,7 @@ export interface RESTPostAPIWebhookWithTokenQuery { thread_id?: Snowflake; /** * Whether to allow sending (non-interactive) components for non-application-owned webhooks - * (defaults to `false`; ignored for application-owned webhooks) + * (ignored for application-owned webhooks) * * @defaultValue `false` */ diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index 4b5593bf..c9f30893 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -723,11 +723,9 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * The type of thread to create * - * In API v9, `type` defaults to `PRIVATE_THREAD`. - * In a future API version this will be changed to be a required field, with no default. - * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object-channel-types} - * @defaultValue `ChannelType.PrivateThread` + * @defaultValue `ChannelType.PrivateThread` in API v9. + * In a future API version this will be changed to be a required field, with no default. */ type?: ThreadChannelType | undefined; /** @@ -779,7 +777,9 @@ export interface RESTGetAPIChannelThreadMembersQuery { */ after?: Snowflake; /** - * Max number of thread members to return (1-100). Defaults to 100 + * Max number of thread members to return (1-100) + * + * @defaultValue `100` */ limit?: number; } diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index 57138420..aa649dae 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -310,7 +310,7 @@ export interface RESTPatchAPIGuildJSONBody { */ public_updates_channel_id?: Snowflake | null | undefined; /** - * The preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild used in server discovery and notices from Discord * * @defaultValue `"en-US"` (if the value is set to `null`) */ diff --git a/deno/rest/v9/monetization.ts b/deno/rest/v9/monetization.ts index 98300757..ecdcfee2 100644 --- a/deno/rest/v9/monetization.ts +++ b/deno/rest/v9/monetization.ts @@ -33,11 +33,15 @@ export interface RESTGetAPIEntitlementsQuery { */ guild_id?: Snowflake | undefined; /** - * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default + * Whether ended entitlements should be omitted + * + * @defaultValue `false` ended entitlements are included by default */ exclude_ended?: boolean | undefined; /** - * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default + * Whether deleted entitlements should be omitted + * + * @defaultValue `true` deleted entitlements are not included by default */ exclude_deleted?: boolean | undefined; } diff --git a/deno/rest/v9/webhook.ts b/deno/rest/v9/webhook.ts index af739ca4..3d65b2d2 100644 --- a/deno/rest/v9/webhook.ts +++ b/deno/rest/v9/webhook.ts @@ -178,7 +178,7 @@ export type RESTPostAPIWebhookWithTokenFormDataBody = export interface RESTPostAPIWebhookWithTokenQuery { /** * Waits for server confirmation of message send before response, and returns the created message body - * (defaults to `false`; when `false` a message that is not saved does not return an error) + * (when `false` a message that is not saved does not return an error) * * @defaultValue `false` */ @@ -191,7 +191,7 @@ export interface RESTPostAPIWebhookWithTokenQuery { thread_id?: Snowflake; /** * Whether to allow sending (non-interactive) components for non-application-owned webhooks - * (defaults to `false`; ignored for application-owned webhooks) + * (ignored for application-owned webhooks) * * @defaultValue `false` */ diff --git a/deno/rpc/v10.ts b/deno/rpc/v10.ts index 96165f6a..a0b4f707 100644 --- a/deno/rpc/v10.ts +++ b/deno/rpc/v10.ts @@ -435,7 +435,9 @@ export interface RPCSetUserVoiceSettingsArgs { */ pan?: RPCVoicePan; /** - * Set the volume of user (defaults to 100, min 0, max 200) + * Set the volume of user (min 0, max 200) + * + * @defaultValue `100` */ volume?: number; /** diff --git a/payloads/v10/_interactions/applicationCommands.ts b/payloads/v10/_interactions/applicationCommands.ts index 849b428d..6eb01eb7 100644 --- a/payloads/v10/_interactions/applicationCommands.ts +++ b/payloads/v10/_interactions/applicationCommands.ts @@ -95,15 +95,21 @@ export interface APIApplicationCommand { */ default_permission?: boolean; /** - * Indicates whether the command is age-restricted, defaults to `false` + * Indicates whether the command is age-restricted + * + * @defaultValue `false` */ nsfw?: boolean; /** - * Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])` + * Installation context(s) where the command is available, only for globally-scoped commands + * + * @defaultValue `[ApplicationIntegrationType.GuildInstall]` */ integration_types?: ApplicationIntegrationType[]; /** - * Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`. + * Interaction context(s) where the command can be used, only for globally-scoped commands + * + * @defaultValue `[InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]` */ contexts?: InteractionContextType[] | null; /** diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index bd313c92..99759ea7 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -363,7 +363,9 @@ export interface APIThreadOnlyChannel { /** - * The default layout type used to display posts in a forum channel. Defaults to `0`, which indicates a layout view has not been set by a channel admin + * The default layout type used to display posts in a forum channel + * + * @defaultValue `ForumLayoutType.NotSet` which indicates a layout view has not been set by a channel admin */ default_forum_layout: ForumLayoutType; } @@ -1550,7 +1552,7 @@ export interface APIAllowedMentions { */ users?: Snowflake[]; /** - * For replies, whether to mention the author of the message being replied to (default false) + * For replies, whether to mention the author of the message being replied to * * @defaultValue `false` */ diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index 5aff5ede..3433e898 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -223,7 +223,7 @@ export interface APIGuild extends APIPartialGuild { */ premium_subscription_count?: number; /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @defaultValue `"en-US"` */ @@ -291,7 +291,7 @@ export interface APIGuild extends APIPartialGuild { */ export interface APIPartialInteractionGuild extends Pick { /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @unstable https://github.com/discord/discord-api-docs/issues/6938 * @defaultValue `"en-US"` @@ -682,7 +682,9 @@ export interface APIGuildMember { */ mute: boolean; /** - * Guild member flags represented as a bit set, defaults to `0` + * Guild member flags represented as a bit set + * + * @defaultValue `0` */ flags: GuildMemberFlags; /** diff --git a/payloads/v9/_interactions/applicationCommands.ts b/payloads/v9/_interactions/applicationCommands.ts index bb0fcfa2..74c0f182 100644 --- a/payloads/v9/_interactions/applicationCommands.ts +++ b/payloads/v9/_interactions/applicationCommands.ts @@ -95,15 +95,19 @@ export interface APIApplicationCommand { */ default_permission?: boolean; /** - * Indicates whether the command is age-restricted, defaults to `false` + * Indicates whether the command is age-restricted */ nsfw?: boolean; /** - * Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])` + * Installation context(s) where the command is available, only for globally-scoped commands + * + * @defaultValue `[ApplicationIntegrationType.GuildInstall]` */ integration_types?: ApplicationIntegrationType[]; /** - * Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`. + * Interaction context(s) where the command can be used, only for globally-scoped commands + * + * @defaultValue `[InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]` */ contexts?: InteractionContextType[] | null; /** diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index 19bbb9c7..751f1ea6 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -363,7 +363,9 @@ export interface APIThreadOnlyChannel { /** - * The default layout type used to display posts in a forum channel. Defaults to `0`, which indicates a layout view has not been set by a channel admin + * The default layout type used to display posts in a forum channel + * + * @defaultValue `ForumLayoutType.NotSet` which indicates a layout view has not been set by a channel admin */ default_forum_layout: ForumLayoutType; } @@ -1549,7 +1551,7 @@ export interface APIAllowedMentions { */ users?: Snowflake[]; /** - * For replies, whether to mention the author of the message being replied to (default false) + * For replies, whether to mention the author of the message being replied to * * @defaultValue `false` */ diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 773f1f36..1b8910af 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -223,7 +223,7 @@ export interface APIGuild extends APIPartialGuild { */ premium_subscription_count?: number; /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @defaultValue `"en-US"` */ @@ -291,7 +291,7 @@ export interface APIGuild extends APIPartialGuild { */ export interface APIPartialInteractionGuild extends Pick { /** - * The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild; used in guild discovery and notices from Discord * * @unstable https://github.com/discord/discord-api-docs/issues/6938 * @defaultValue `"en-US"` @@ -674,7 +674,9 @@ export interface APIGuildMember { */ mute: boolean; /** - * Guild member flags represented as a bit set, defaults to `0` + * Guild member flags represented as a bit set + * + * @defaultValue `0` */ flags: GuildMemberFlags; /** diff --git a/rest/v10/channel.ts b/rest/v10/channel.ts index d40eff70..8539459a 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -709,11 +709,9 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * The type of thread to create * - * In API v9 and v10, `type` defaults to `PRIVATE_THREAD`. - * In a future API version this will be changed to be a required field, with no default. - * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object-channel-types} - * @defaultValue `ChannelType.PrivateThread` + * @defaultValue `ChannelType.PrivateThread` in API v9 and v10. + * In a future API version this will be changed to be a required field, with no default. */ type?: ThreadChannelType | undefined; /** @@ -765,7 +763,9 @@ export interface RESTGetAPIChannelThreadMembersQuery { */ after?: Snowflake; /** - * Max number of thread members to return (1-100). Defaults to 100 + * Max number of thread members to return (1-100) + * + * @defaultValue `100` */ limit?: number; } diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 3085097b..ecac191c 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -310,7 +310,7 @@ export interface RESTPatchAPIGuildJSONBody { */ public_updates_channel_id?: Snowflake | null | undefined; /** - * The preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild used in server discovery and notices from Discord * * @defaultValue `"en-US"` (if the value is set to `null`) */ diff --git a/rest/v10/monetization.ts b/rest/v10/monetization.ts index 15a36244..cd1b66db 100644 --- a/rest/v10/monetization.ts +++ b/rest/v10/monetization.ts @@ -33,11 +33,15 @@ export interface RESTGetAPIEntitlementsQuery { */ guild_id?: Snowflake | undefined; /** - * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default + * Whether ended entitlements should be omitted + * + * @defaultValue `false` ended entitlements are included by default */ exclude_ended?: boolean | undefined; /** - * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default + * Whether deleted entitlements should be omitted + * + * @defaultValue `true` deleted entitlements are not included by default */ exclude_deleted?: boolean | undefined; } diff --git a/rest/v10/webhook.ts b/rest/v10/webhook.ts index 8a5fab59..723551a5 100644 --- a/rest/v10/webhook.ts +++ b/rest/v10/webhook.ts @@ -178,7 +178,7 @@ export type RESTPostAPIWebhookWithTokenFormDataBody = export interface RESTPostAPIWebhookWithTokenQuery { /** * Waits for server confirmation of message send before response, and returns the created message body - * (defaults to `false`; when `false` a message that is not saved does not return an error) + * (when `false` a message that is not saved does not return an error) * * @defaultValue `false` */ @@ -191,7 +191,7 @@ export interface RESTPostAPIWebhookWithTokenQuery { thread_id?: Snowflake; /** * Whether to allow sending (non-interactive) components for non-application-owned webhooks - * (defaults to `false`; ignored for application-owned webhooks) + * (ignored for application-owned webhooks) * * @defaultValue `false` */ diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 2c0a65d5..3f502322 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -723,11 +723,9 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * The type of thread to create * - * In API v9, `type` defaults to `PRIVATE_THREAD`. - * In a future API version this will be changed to be a required field, with no default. - * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object-channel-types} - * @defaultValue `ChannelType.PrivateThread` + * @defaultValue `ChannelType.PrivateThread` in API v9. + * In a future API version this will be changed to be a required field, with no default. */ type?: ThreadChannelType | undefined; /** @@ -779,7 +777,9 @@ export interface RESTGetAPIChannelThreadMembersQuery { */ after?: Snowflake; /** - * Max number of thread members to return (1-100). Defaults to 100 + * Max number of thread members to return (1-100) + * + * @defaultValue `100` */ limit?: number; } diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index 71043d49..0235b612 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -310,7 +310,7 @@ export interface RESTPatchAPIGuildJSONBody { */ public_updates_channel_id?: Snowflake | null | undefined; /** - * The preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" + * The preferred locale of a Community guild used in server discovery and notices from Discord * * @defaultValue `"en-US"` (if the value is set to `null`) */ diff --git a/rest/v9/monetization.ts b/rest/v9/monetization.ts index e3a86150..e8457f89 100644 --- a/rest/v9/monetization.ts +++ b/rest/v9/monetization.ts @@ -33,11 +33,15 @@ export interface RESTGetAPIEntitlementsQuery { */ guild_id?: Snowflake | undefined; /** - * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default + * Whether ended entitlements should be omitted + * + * @defaultValue `false` ended entitlements are included by default */ exclude_ended?: boolean | undefined; /** - * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default + * Whether deleted entitlements should be omitted + * + * @defaultValue `true` deleted entitlements are not included by default */ exclude_deleted?: boolean | undefined; } diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index 691274d0..b34d52e2 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -178,7 +178,7 @@ export type RESTPostAPIWebhookWithTokenFormDataBody = export interface RESTPostAPIWebhookWithTokenQuery { /** * Waits for server confirmation of message send before response, and returns the created message body - * (defaults to `false`; when `false` a message that is not saved does not return an error) + * (when `false` a message that is not saved does not return an error) * * @defaultValue `false` */ @@ -191,7 +191,7 @@ export interface RESTPostAPIWebhookWithTokenQuery { thread_id?: Snowflake; /** * Whether to allow sending (non-interactive) components for non-application-owned webhooks - * (defaults to `false`; ignored for application-owned webhooks) + * (ignored for application-owned webhooks) * * @defaultValue `false` */ diff --git a/rpc/v10.ts b/rpc/v10.ts index 0c2d6c68..39843e44 100644 --- a/rpc/v10.ts +++ b/rpc/v10.ts @@ -435,7 +435,9 @@ export interface RPCSetUserVoiceSettingsArgs { */ pan?: RPCVoicePan; /** - * Set the volume of user (defaults to 100, min 0, max 200) + * Set the volume of user (min 0, max 200) + * + * @defaultValue `100` */ volume?: number; /**