From dfb7f93dd8fdcbb393cb549c38c2d7ead392d326 Mon Sep 17 00:00:00 2001 From: DeveloperDragon <42499964+TotoTheDragon@users.noreply.github.com> Date: Mon, 10 Apr 2023 01:47:15 +0200 Subject: [PATCH] fix(types): `DiscordCreateApplicationCommand.description` is optional (#2986) * Made the description optional for creating commands * Update packages/types/src/discord.ts Co-authored-by: ITOH --------- Co-authored-by: ITOH Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> --- packages/types/src/discord.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/src/discord.ts b/packages/types/src/discord.ts index f8c74a24d..6390a2caa 100644 --- a/packages/types/src/discord.ts +++ b/packages/types/src/discord.ts @@ -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 */