problem displaying avatar per server
Hi guys, Im trying to make an Avatar command that Displays both avatar per server, this means
1- default avatar
2-Server Avatar (nitro)
I already made it works, but doesn't seems to work with mentions or ID's mentions, what im doing wrong?
here an example:
8 Replies
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
also, here's the code:
it looks like your initial reply sends
embed1
, which is defined with message.member
's info rather than user
beyond that, consider logging message.mentions.users.first()
or usario
I'd also consider handling collected component interactions on collect
rather than in the filterIf you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
ā¢ Once you do, log relevant values and if-conditions
ā¢ More sophisticated debugging methods are breakpoints and runtime inspections: learn morethx, you're right, I logged:
-
message.member.id
& message.member.user.tag
-usuario
-message.mentions.users.first()
and message.member.id
& message.member.user.tag
are displaying my ID, while usuario
and message.mentions.users.first()
are displaying the mentioned user Help, I don't know how to get server avatar without
member.user
GuildMember#displayAvatarURL()
A link to the member's guild avatar if they have one. Otherwise, a link to their User#displayAvatarURL() will be returned.
But that doesn't help in any way <a:TCMN_jaderr:812446303144640543>