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 toolkit14mo 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
duck14mo 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
Syjalo14mo ago
Btw there's no such thing as interaction.options.getChannelId(), Only .getChannel().
Maxi.
Maxi.14mo ago
duck
duck14mo ago
TypeError: interaction.options.getChannelId is not a function
are you sure you changed all of them?
Maxi.
Maxi.14mo ago
i forgot one now i changed that but still same error TypeError: interaction.options.getChannel is not a function
duck
duck14mo 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 docs14mo 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.14mo ago
GitHub
GitHub - maxi-sys/14
Contribute to maxi-sys/14 development by creating an account on GitHub.
duck
duck14mo ago
ok
Maxi.
Maxi.14mo ago
Can you Look inside the Code
duck
duck14mo ago
and do what? I've already told you your issue
Maxi.
Maxi.14mo ago
Im new in js can you fix it for me plz?
duck
duck14mo ago
no
Maxi.
Maxi.14mo ago
Okay 😦 but thanks