Skip to content

How to get the member's nickname in a guild? #599

Answered by almostSouji
zebia13 asked this question in Q&A
Discussion options

You must be logged in to vote

Nickname is guild bound data, as such available on the GuildMember instance.
The GuildMember for the message author can be accessed via <Message>.member.

.toString() called on a User will yield the mention format <@id> (template literals implicitly call .toString() to display a value).
.valueOf() called on a User will yield its id (string) (any other concatenation implicitly calls .valueOf())

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Jiralite
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #598 on February 17, 2021 21:46.