Guild member nickname #6915
-
Hi all, Apologies, might have posted in the wrong section. I'm trying to get a user's server nickname and I've been wracking my brain on this for hours. I've tried a number of things, however the closest I can get is to see the value I want in the console when I print the following. However I can't seem to grab the values in this promise object.
Prints this:
Can someone please help me understand how to access these values? All I'm trying to do is assign the value of nickname to a string variable. I assumed it should be as simple as guildMember.nickname or something similar, but nothing I've tried works... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is as simple as guildMember.nickname, you just complicated it way more than you had to. Since you’re using fetch you have to await your promise to then access the nickname. If the message is sent on a guild you can also just use message.member.nickname |
Beta Was this translation helpful? Give feedback.
It is as simple as guildMember.nickname, you just complicated it way more than you had to. Since you’re using fetch you have to await your promise to then access the nickname. If the message is sent on a guild you can also just use message.member.nickname