From a1f94f670e5b6009b9c33932ce06ed512447b953 Mon Sep 17 00:00:00 2001 From: muchnameless <12682826+muchnameless@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:10:05 +0200 Subject: [PATCH] fix(ApplicationCommand): default option.required fix (#5848) --- src/structures/ApplicationCommand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ApplicationCommand.js b/src/structures/ApplicationCommand.js index 483a595a4..43ec79a99 100644 --- a/src/structures/ApplicationCommand.js +++ b/src/structures/ApplicationCommand.js @@ -216,7 +216,7 @@ class ApplicationCommand extends Base { name: option.name, description: option.description, required: - option.required ?? (stringType === 'SUB_COMMAND' || stringType === 'SUB_COMMAND_GROUP') ? undefined : false, + option.required ?? (stringType === 'SUB_COMMAND' || stringType === 'SUB_COMMAND_GROUP' ? undefined : false), choices: option.choices, options: option.options?.map(o => this.transformOption(o, received)), };