Skip to content

interaction.options.getSubcommand is not a function #7158

Closed Answered by VoltrexKeyva
Tom-ne asked this question in Q&A
Discussion options

You must be logged in to vote

Your interaction variable/parameter is possibly not an instance of the CommandInteraction 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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Tom-ne
Comment options

@Kerem24
Comment options

Answer selected by Tom-ne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants