MT-CTF / ctf-discord-bot

A bot to manage roles and such on Discord
MIT License
7 stars 4 forks source link

Use user display name instead of their unique name #16

Closed LoneWolfHT closed 1 year ago

LoneWolfHT commented 1 year ago

e.g LandarVargan instead of landarvargan image

AFCMS commented 1 year ago

Need upcoming Discord.js v14.12 (https://github.com/discordjs/discord.js/pull/9512) to be done properly.

Will look into it.

AFCMS commented 1 year ago

GuildMember.displayName currently return the nickname or the username if nickname doesn't exist for the guild

The PR seem to make this property use the new User.displayName property instead of the username, so we can migrate the code to use GuildMember.displayName and then just bump to v14.12 when available.

Will work on it.