-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Username Docs Updates #6218
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
Merged
Merged
Username Docs Updates #6218
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a768ffc
start username docs
shaydewael 9a162cf
default avatar
shaydewael 551843e
Update docs/Reference.md
shaydewael 090d609
Update docs/Change_Log.md
shaydewael 8c74893
fix docs
shaydewael c75d7ef
reorder
shaydewael 7379fc0
clarify migrated/legacy
shaydewael 3f0c9ca
small changelog clarification
shaydewael a77d595
Merge branch 'main' into username-updates
shaydewael f7b0650
Update docs/Change_Log.md
shaydewael 8500126
Update docs/Reference.md
shaydewael 9f6ddd2
oops
shaydewael bc56661
great
shaydewael File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,50 @@ | |
- Add Auto Moderation `mention_raid_protection_enabled` [trigger_metadata](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object-trigger-metadata) field for the `MENTION_SPAM` [trigger_type](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object-trigger-types). If this field and its parent `MENTION_SPAM` rule are enabled, Auto Moderation provides baseline detection against sudden spikes in mention activity that are normally indicative of mention raids. | ||
- Add `safety_alerts_channel_id` [guild](#DOCS_RESOURCES_GUILD/guild-object) field and [`RAID_ALERTS_DISABLED` guild feature flag](#DOCS_RESOURCES_GUILD/guild-object-guild-features) which are associated with join raid protection | ||
|
||
## Unique usernames on Discord | ||
|
||
#### May 3, 2023 | ||
|
||
> warn | ||
> Bot users will stay on the legacy username system for now. More details can be found on the [Developer Help Center article](https://dis.gd/app-usernames). | ||
|
||
Discord’s username system is changing. Discriminators are being removed and new, unique usernames and display names are being introduced. You can read more details about how changes to the username system affects non-bot users in the [general Help Center article](https://dis.gd/usernames). To learn how it impacts bot users specifically, you can read the [Developer Help Center article](https://dis.gd/app-usernames). | ||
|
||
This changelog focuses only on the technical changes to be aware of to update your app's code. | ||
|
||
### Identifying migrated users | ||
|
||
The new username system will rollout to users over time rather than all at once. The value of a single zero (`"0"`) in the [`discriminator` field](#DOCS_RESOURCES_USER/user-object-user-structure) on a user will indicate that the user has been migrated to the new username system. Note that the discriminator for migrated users will *not* be 4-digits like a standard discriminator (it is `"0"`, not `"0000"`). The value of the `username` field will become the migrated user's unique username. | ||
|
||
After migration of all users is complete, the `discriminator` field may be removed. | ||
|
||
#### Example migrated user | ||
|
||
```json | ||
{ | ||
"id": "80351110224678912", | ||
"username": "nelly", | ||
"discriminator": "0", | ||
"global_name": "Nelly", | ||
"avatar": "8342729096ea3675442027381ff50dfe", | ||
"verified": true, | ||
"email": "[email protected]", | ||
"flags": 64, | ||
"banner": "06c16474723fe537c283b8efa61a30c8", | ||
"accent_color": 16711680, | ||
"premium_type": 1, | ||
"public_flags": 64 | ||
} | ||
``` | ||
|
||
### Display names | ||
|
||
As part of the new username system, standard Discord users can define a non-unique display name. This value will be a new `global_name` field with a max length of 32 characters. If the user has not set a display name, `global_name` will be null. | ||
|
||
### Default avatars | ||
|
||
For users with migrated accounts, default avatar URLs will be based on the user ID instead of the discriminator. The URL can now be calculated using `(user_id >> 22) % 6`. Users on the legacy username system will continue using `discriminator % 5`. | ||
|
||
## Bot users added to all new apps | ||
|
||
#### April 14, 2023 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You seem to have missed this with the restrictions (or link) at the header
New Usernames
here.