Mismatched Parameter Fix
Trying to fetch the user but not working
57 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.2, 3, and 4 ^
i'm doing it sir thanks
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
let me try
you missed steps 2 and 4
the error its all i have at console and what im triying to do its display user banner it he/she has it and the if not display a hex color with an API. What doesn't work its almost everything because when i provide an user it always shows the color and not the banner (and he/she has a banner). When i try to do it with no target it throws that err
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
im changing all code to try a thing
so i made this
when i use the option it alawys shows the banner (without existing the banner)
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah sir
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
you mean this line?
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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
its correct
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
why?
im lost sorry
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
what that means?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but how i fix it because I use a handler to do the slash
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
just in that file or in all files
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ok 1 sec
okey all done
but now i have errors all sites
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
now i have errors at events 💀
maybe its the handler
look
commands its the slash handler
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah?
and why for me no
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but if i use like that way i had the things will happend like that way?
i think the error its at my event handler
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah thats what i was triying
can i show you the vent handler
because i think thats the problem
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
here in the new guide its different
it should be only args?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but then, i have to change this
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
just pass client?
all my bot its broken 💀
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
how you do it then
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i just updated the handler
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but still not working xd
im gonna have dinner later i'll be here
Im back
the order shouldn't be the error
thats are parameters no?
nothing works
Version 14 has released! Please update at your earliest convenience.
• Update:
npm rm discord.js
npm i discord.js
• Update guide (use CTRL
+ F
to search for the old method or property)
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 expectedUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
i just fixed all stuff
i just changed the way the handlers read the files and now its also faster
🙂