Closed cristianireyes closed 3 years ago
Thank's !
discord.js changed the options field from an array to a Map
, it causes this issue, I fixed it you can now update the package by running npm run update
and verify that your version is now 5.0.12 !
:)
Thank's !
discord.js changed the options field from an array to a
Map
, it causes this issue, I fixed it you can now update the package by runningnpm run update
and verify that your version is now 5.0.12 !:)
Thanks for your quick resolution. Works!
I am testing the forward slash commands with the following example project: https://github.com/OwenCalvin/discord.ts-starter.git
The problem I found is when executing a command within a group. It seems that the command tree cannot be calculated correctly and returns undefined. For better understanding I provide screenshots of debugging.
Analysis:
I run my command on my discord server
The interaction arrived successfully and get the interaction group tree
At this point, when trying to execute the getOptionsTree method on line 223, the variable _a takes the value of undefined in its second iteration
And finally the getInteractionGroupTree method ends up returning the following
Then it tries to retrieve slash from tree, accessing by case 1, but the conditions are never met because it tries to compare the group name with the command name, which is wrong
And consequently, it ends up returning slash undefined
This causes the command to fail by not executing the slash
Thanks for your time Regards ✌🏻