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:
DeveloperDragon
2023-04-10 01:47:15 +02:00
committed by GitHub
parent da0590120f
commit dfb7f93dd8

View File

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