create a slash command with two optional options, example: /test option_a option_b
now on discord use this command as /test option_b: 123 (here we are using option_b only and leaving option_a blank)
when discord.ts try to execute the original command, parameter passed are [123, undefined] (which is the issue, because it was suppose to [undefined, 123])
Fix
I have looked at the code, I think, this suggested approach is more appropriate.
Issue
/test option_b: 123
(here we are using option_b only and leaving option_a blank)[123, undefined]
(which is the issue, because it was suppose to[undefined, 123]
)Fix
I have looked at the code, I think, this suggested approach is more appropriate.
Thanks