Errors
Hey, i'm getting a errors but i dont know why and i dont know how to fix it plz help me
my code: https://sourceb.in/GShzOiceTG
errors: https://sourceb.in/u0IL8s58sD
15 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.I'm assuming this command was run in a guild
could you log
interaction
?
your jsdocs seem to indicate there should be more than one paramBtw there's no such thing as
interaction.options.getChannelId()
, Only .getChannel()
.https://sourceb.in/j7VuhjhbdH so?
changed
TypeError: interaction.options.getChannelId is not a function
are you sure you changed all of them?i forgot one now i changed that
but still same error
TypeError: interaction.options.getChannel is not a function
then the error aside, your log shows a Client object
which is to say
interaction
is not your ChatInputCommandInteraction
The order of function parameters must match between definition and function call.
• mismatch! you pass a Message where the client is expected
• mismatch! you pass the Client where a Message is expected
https://github.com/maxi-sys/14 here is my bot
ok
Can you Look inside the Code
and do what?
I've already told you your issue
Im new in js can you fix it for me plz?
no
Okay 😦 but thanks