Skip to content

Make User#tag return unique username instead of display name#73

Merged
DonovanDMC merged 4 commits into
OceanicJS:devfrom
Vendicated:patch-1
Jun 27, 2023
Merged

Make User#tag return unique username instead of display name#73
DonovanDMC merged 4 commits into
OceanicJS:devfrom
Vendicated:patch-1

Conversation

@Vendicated
Copy link
Copy Markdown
Contributor

the point of .tag previously was to get the unique username you can use to add people (username + discrim), so for migrated users, it is logical to also return their unique username. Returning the non unique global displayName makes no sense to me. If people wanted that, they would instead use user.displayName

Also made isMigrated public because it's useful for libvrary users

@Vendicated Vendicated requested a review from DonovanDMC as a code owner June 27, 2023 16:51
@Vendicated Vendicated changed the title Make User#tag return unique username & make User#isMigrated public Make User#tag return unique username instead of displayName Jun 27, 2023
@Vendicated Vendicated changed the title Make User#tag return unique username instead of displayName Make User#tag return unique username instead of display name Jun 27, 2023
Comment thread lib/structures/User.ts Outdated
DonovanDMC
DonovanDMC previously approved these changes Jun 27, 2023
@DonovanDMC DonovanDMC enabled auto-merge (squash) June 27, 2023 19:13
auto-merge was automatically disabled June 27, 2023 19:18

Head branch was pushed to by a user without write access

@Vendicated
Copy link
Copy Markdown
Contributor Author

fixed lint! sorry, i just made the initial commit via github since it was such a minor edit and i was too lazy to clone and open vscode :P But eslint memberSorting got my ass 💔

@DonovanDMC DonovanDMC enabled auto-merge (squash) June 27, 2023 19:33
@DonovanDMC DonovanDMC merged commit 751ece4 into OceanicJS:dev Jun 27, 2023
@Vendicated Vendicated deleted the patch-1 branch June 27, 2023 19:35
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