From a6079bc9ce40ecbb4adace033dbf201897b5459f Mon Sep 17 00:00:00 2001 From: Juruel Keanu Lorenzo <39931559+JKLorenzo@users.noreply.github.com> Date: Sat, 15 May 2021 06:40:41 +0800 Subject: [PATCH] fix(ApplicationCommand): return string equivalent of ApplicationCommandOptionType (#5617) --- 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 2291dc3de..fe2698852 100644 --- a/src/structures/ApplicationCommand.js +++ b/src/structures/ApplicationCommand.js @@ -210,7 +210,7 @@ class ApplicationCommand extends Base { description: option.description, required: option.required, choices: option.choices, - options: option.options?.map(o => this.transformOption(o)), + options: option.options?.map(o => this.transformOption(o, received)), }; } }