mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
fix(types): DiscordCreateApplicationCommand.description is optional (#2986)
* Made the description optional for creating commands * Update packages/types/src/discord.ts Co-authored-by: ITOH <to@itoh.at> --------- Co-authored-by: ITOH <to@itoh.at> Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -1805,8 +1805,8 @@ export interface DiscordCreateApplicationCommand {
|
||||
name: string
|
||||
/** Localization object for `name` field. Values follow the same restrictions as `name` */
|
||||
name_localizations?: Localization | null
|
||||
/** Description for `ApplicationCommandTypes.ChatInput` commands, 1-100 characters. Empty string for `ApplicationCommandTypes.User` and `ApplicationCommandTypes.Message` commands */
|
||||
description: string
|
||||
/** Description for `ApplicationCommandTypes.ChatInput` commands, 1-100 characters. */
|
||||
description?: string
|
||||
/** Localization object for `description` field. Values follow the same restrictions as `description` */
|
||||
description_localizations?: Localization | null
|
||||
/** Parameters for the command, max of 25 */
|
||||
|
||||
Reference in New Issue
Block a user