My kick slash command not function

Please i try to make a kick command but no work
28 Replies
d.js docs
d.js docs3y 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.
mooz.tsx
mooz.tsx3y ago
the user is null that means it's not specified wait what version is this?
jay
jay3y ago
try and use .fetch() instead of .get()
Micr0n
Micr0nOP3y ago
v13
mooz.tsx
mooz.tsx3y ago
What's weird that's the user is null but it must be required
jay
jay3y ago
¯\_(ツ)_/¯
mooz.tsx
mooz.tsx3y ago
only if he's not registering options
jay
jay3y ago
it’s nothing to do with getUser, it’s when he is trying to get the member
Micr0n
Micr0nOP3y ago
I think I'm not registering options, what can I do?
mooz.tsx
mooz.tsx3y ago
register them
Micr0n
Micr0nOP3y ago
how?
mooz.tsx
mooz.tsx3y ago
show your registering code
Micr0n
Micr0nOP3y ago
Micr0n
Micr0nOP3y ago
mooz.tsx
mooz.tsx3y ago
that's hardcoded put the options there not in the cmd export bc there's no point
Micr0n
Micr0nOP3y ago
ok line?
mooz.tsx
mooz.tsx3y ago
on every command
Micr0n
Micr0nOP3y ago
?
Micr0n
Micr0nOP3y ago
Micr0n
Micr0nOP3y ago
right?
mooz.tsx
mooz.tsx3y ago
yes
Micr0n
Micr0nOP3y ago
but the errore in console is same
mooz.tsx
mooz.tsx3y ago
then run your register cmd
Micr0n
Micr0nOP3y ago
Micr0n
Micr0nOP3y ago
ah ok
mooz.tsx
mooz.tsx3y ago
.
Micr0n
Micr0nOP3y ago
oh nice!
mooz.tsx
mooz.tsx3y ago
dude isn't that your handler why should I figure how to fix it lmao
Want results from more Discord servers?
Add your server