getting new display name

hello, with "user.displayName" i am catching the new name system name, means for me "drogensohn". "user.nickname" is just giving me null because i dont have a nickname on that server and i just want to know what i need to do to get the new display name, for me "jonas" now. And how do I prioritize the server nickname over the new display name
7 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jonas
jonasOP2y ago
i am catching all stuff with
let user = client.guilds.cache.get(newState.guild.id).members.cache.get(newState.id);
let user = client.guilds.cache.get(newState.guild.id).members.cache.get(newState.id);
is it equilavent to GuildMember.displayName if I do user.displayName in dev?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jonas
jonasOP2y ago
first of all how do i get dev version
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jonas
jonasOP2y ago
uninstall discord.js first or doesnt matter forget it okay with dev version everythings working thank you
Want results from more Discord servers?
Add your server