interaction.options.getSubcommand is not a function #7158
-
The problemI am making a bot that uses slash commands. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your Better to ask for help about that and similar issues related to discord.js by joining discord.js' official Discord support server. |
Beta Was this translation helpful? Give feedback.
Your
interaction
variable/parameter is possibly not an instance of theCommandInteraction
class, which is the result of either passing parameters in the incorrect order to your command handler in a way (If you're using a command handler of course), or you're passing the incorrect value to that variable if it is one.Better to ask for help about that and similar issues related to discord.js by joining discord.js' official Discord support server.