From 9610403b263716894754cf99ac7afd67290d16f3 Mon Sep 17 00:00:00 2001 From: Endy <61771609+Endy3032@users.noreply.github.com> Date: Sun, 22 May 2022 19:39:08 +0700 Subject: [PATCH] Made `required` optional for command option (#2234) --- transformers/applicationCommandOption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transformers/applicationCommandOption.ts b/transformers/applicationCommandOption.ts index 6ba030617..38f1d7c94 100644 --- a/transformers/applicationCommandOption.ts +++ b/transformers/applicationCommandOption.ts @@ -39,7 +39,7 @@ export interface ApplicationCommandOption { /** Localization object for the `description` field. Values follow the same restrictions as `description` */ descriptionLocalizations?: Localization; /** If the parameter is required or optional--default `false` */ - required: boolean; + required?: boolean; /** Choices for `string` and `int` types for the user to pick from */ choices?: ApplicationCommandOptionChoice[]; /** If the option is a subcommand or subcommand group type, this nested options will be the parameters */