Says that interaction.isChatInputCommand is not a function
so this is my code
and when i run a command it gives this error
this is how my events are registerd. if it helps
the event class is just a simple abstract class with some values like the type of event called
event
and if its run once like for the ready event called once
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!i think you need to use
BaseInteraction
instead of Interaction
nope. didnt fix it
cant help with anything further then, as it should work.
alr thx
interaction
is not really an interaction then, log it and see what it isuhhm. this looks like an interaction to me
It's an array though
oh yhea
would it be becouse of the way that i register the events?
event.execute(this.client, ...args)
oh thx that worked