With unique usernames rolling out, usernames will no longer have a discriminator. During the migration user will have a '#0' discriminator after updating. This change will conditionally append the username given to Keycloak if the discriminator is not 0.
@wadahiro seeing as Discord has broadly pushed the username update out, and it's more likely that an active user will have a discriminator of 0, could we get this PR merged?
With unique usernames rolling out, usernames will no longer have a discriminator. During the migration user will have a '#0' discriminator after updating. This change will conditionally append the username given to Keycloak if the discriminator is not 0.
https://support-dev.discord.com/hc/en-us/articles/13667755828631-Updating-Apps-to-Support-Unique-Usernames#h_01GYA87X9QZ19H2X6PJ3M35ZDH