Help with banning member from command
I am running into the error (displayed in the image) whenever I run my ban command. Here is the code for the ban command:
12 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.(sorry about the code not being formatted correctly, Discord bugged)
you need the
Guilds
intentOh
Quick question, why is
user.tag
undefineduser
is set to a required option in the commanduser
is a GuildMember
use user.user.tag
, and maybe even rename user
to something more accurate, like member
oh
Thanks!
π
Just to complement
Hm?
Despite sounding similar there is a distinct difference between users and members in Discord:
β’ User: global Discord user data (global avatar, username, tag, id)
β’ GuildMember: user data associated to a guild (guild, nickname, roles, voice, guild avatar, etc.)
β’ Conversion: User β GuildMember | GuildMember β User
I didn't notice that the interaction option would return a GuildMember
thats all
Thanks for the help though