Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Remove discrim from username display if user is using new username format#308

Merged
notsniped merged 1 commit intoPyBotDevs:mainfrom
cyanogus:optimize-command-for-new-usernames
Jul 12, 2023
Merged

Remove discrim from username display if user is using new username format#308
notsniped merged 1 commit intoPyBotDevs:mainfrom
cyanogus:optimize-command-for-new-usernames

Conversation

@cyanogus
Copy link
Contributor

This change was made in light of the new Discord username system.

The new username system features usernames without the discriminator system. (eg: notsniped#4573 -> notsniped)

Since some users still either have not updated their username, and bot users have not received the update yet, the Discord API will return new usernames's discriminators as #0.

To prevent this from reflecting on commands which depend on the full username, this change adds a feature to remove usernames with discrim #0.

@notsniped notsniped merged commit 5955369 into PyBotDevs:main Jul 12, 2023
@notsniped notsniped self-assigned this Jul 12, 2023
@notsniped notsniped added enhancement New feature or request priority:high type:patch Bug fixes for the bot and/or it's commands type:cogs Any changes to the bot's slash command cogs area:utils Any changes related to the utility commands in isobot labels Jul 12, 2023
@cyanogus cyanogus deleted the optimize-command-for-new-usernames branch July 13, 2023 06:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:utils Any changes related to the utility commands in isobot enhancement New feature or request priority:high size/XS type:cogs Any changes to the bot's slash command cogs type:patch Bug fixes for the bot and/or it's commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants