Skip to content

Deprecation of discriminator #831

Closed
Closed

Description

@Tais993

Describe the bug
Users are going to be unique, the discriminator will eventually pass away. (How long this'll fully take is a question, either way changing should happen as fast as possible)

The discriminator wills

The consequences
As far as I'm aware, identification happens using user ID's, not using their tag.
Therefor nothing mayor should happen, most things will be styling / messages.

Many commands show the user by their tag, so this will have to change to their name, (maybe also ID? is useful or staff commands, but others not really)

the /whois command will also have to be modified for this, but that should be everything.

I'll do a check whenever Guild#getUserByTag is being used anywhere, if so we'll have to wait for a Guild#getUserByUniqueName / Guild#getUserByName.

Activity

  1. added
    bug
    on May 4, 2023
  2. self-assigned this
    on May 4, 2023
  3. Tais993 commented on May 4, 2023

    @Tais993
    MemberAuthor

    I'll take care of this tonight, should be minute work

  4. Tais993 commented on May 5, 2023

    @Tais993
    MemberAuthor

    I did some thinking, and there is a deprecation period.

    We can wait for Discord to add some kind of a flag, or a way to know whenever someone has an unique username already?
    We then use a util method, which checks that and returns either the username or the tag.

    That'd be the nicest solution I feel like, so this'll then be on hold till Discord releases all changes.

    As well, I personally feel like we should replace the tags with users their unique username, and not with their display name.
    Is that fine with anyone, or you guys rather see display names and unique usernames?

  5. Zabuzard commented on May 5, 2023

    @Zabuzard
    Member

    It depends on the use case in the code. In most situations we either want the ID or the display name. I dont really see why/when we should be using the actual username or discriminators.

  6. Tais993 commented on May 5, 2023

    @Tais993
    MemberAuthor

    Discriminator is simply a nice to have, as it's a "user friendly" way to tell people apart.
    In moderation cases, ID is always shown already, and in non moderation cases, think ID/mention is still shown most of the time.

    But well, nobody knows each others ID out of their head, so that's the human part.
    There aren't many non-unique names in our Discord, and even if there are multiple people with the same name, can tell them apart from pfp, so honestly don't need the discriminator in our everyday use.

    So I guess we can just fully remove the discriminator, I have already changed it, just didn't commit it yet.
    I'll do a second check or I missed anything, and create PR tonight.

  7. github-actions commented on Jun 5, 2023

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.

  8. Tais993 commented on Jun 7, 2023

    @Tais993
    MemberAuthor

    i forgor

  9. github-actions commented on Jul 7, 2023

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.

  10. added
    inactivity-closed
    on Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buginactivity-closedpriority: normalstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions