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
d.js toolkit
d.js toolkit2y ago
• 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.
duck
duck2y ago
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 param
Syjalo
Syjalo2y ago
Btw there's no such thing as interaction.options.getChannelId(), Only .getChannel().
Maxi.
Maxi.OP2y ago
duck
duck2y ago
TypeError: interaction.options.getChannelId is not a function
are you sure you changed all of them?
Maxi.
Maxi.OP2y ago
i forgot one now i changed that but still same error TypeError: interaction.options.getChannel is not a function
duck
duck2y ago
then the error aside, your log shows a Client object which is to say interaction is not your ChatInputCommandInteraction
d.js docs
d.js docs2y ago
The order of function parameters must match between definition and function call.
function execute(client, message, args) { ... };
execute(message, client, args);
function execute(client, message, args) { ... };
execute(message, client, args);
• mismatch! you pass a Message where the client is expected • mismatch! you pass the Client where a Message is expected
Maxi.
Maxi.OP2y ago
GitHub
GitHub - maxi-sys/14
Contribute to maxi-sys/14 development by creating an account on GitHub.
duck
duck2y ago
ok
Maxi.
Maxi.OP2y ago
Can you Look inside the Code
duck
duck2y ago
and do what? I've already told you your issue
Maxi.
Maxi.OP2y ago
Im new in js can you fix it for me plz?
duck
duck2y ago
no
Maxi.
Maxi.OP2y ago
Okay 😦 but thanks
Want results from more Discord servers?
Add your server