Get displayed nickname of user #1934
Answered
by
RedcodesDev
TheRisenPhoenix
asked this question in
Questions and Help
-
Members of a server can change their displayed nickname for this server. |
Beta Was this translation helpful? Give feedback.
Answered by
RedcodesDev
Dec 3, 2021
Replies: 1 comment 2 replies
-
You can use Member#getEffectiveName() to get the Nickname or if it is unset the real username of a guild member. You can read it in the docs here: https://ci.dv8tion.net/job/JDA/javadoc/net/dv8tion/jda/api/entities/Member.html#getEffectiveName() |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
TheRisenPhoenix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use Member#getEffectiveName() to get the Nickname or if it is unset the real username of a guild member. You can read it in the docs here: https://ci.dv8tion.net/job/JDA/javadoc/net/dv8tion/jda/api/entities/Member.html#getEffectiveName()