Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support new username system #146

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Conversation

SerenModz21
Copy link
Contributor

Discord.js v14.12.0 was just released and along with it, brings support for the new username system (discordjs/discord.js#9512). Therefore, I have replaced User#username with User#displayName. The displayName property returns the globalName but falls back to the username.

https://github.com/discordjs/discord.js/blob/3bc0dce04af9aba4cc67435a23b8a682f35276ec/packages/discord.js/src/structures/User.js#L242-L244

image

@SerenModz21
Copy link
Contributor Author

oops, i forgot to run the lint script

Signed-off-by: Seren_Modz 21 <[email protected]>
Signed-off-by: Seren_Modz 21 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants