Skip to content
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

Remove discord discriminator requirement #3374

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Conversation

partydragen
Copy link
Member

No description provided.

@partydragen partydragen modified the milestones: 2.1.0, 2.1.x May 14, 2023
@partydragen partydragen marked this pull request as draft May 14, 2023 20:43
@partydragen partydragen marked this pull request as ready for review June 10, 2023 21:00
@samerton
Copy link
Member

Does this still work for users that have not converted to the new Discord username system yet?

@partydragen
Copy link
Member Author

Does this still work for users that have not converted to the new Discord username system yet?

Yes, Just that they does not get the tag anymore with is soon removed anyways

the username field is not really used for anything anyways, the username field is already outdated if they change their name or tag anyways as there is nothing that keeping the username up to date

@PadowYT2
Copy link
Contributor

Does this still work for users that have not converted to the new Discord username system yet?

Yes, Just that they does not get the tag anymore with is soon removed anyways

the username field is not really used for anything anyways, the username field is already outdated if they change their name or tag anyways as there is nothing that keeping the username up to date

With the old system, you know you can have the same username on different accounts, wouldn't that be a risk?

@Derkades
Copy link
Member

With the old system, you know you can have the same username on different accounts, wouldn't that be a risk?

I don't think the Discord username is ever used as an identifier, so that shouldn't be an issue

@tadhgboyle
Copy link
Member

Worth noting: as of JSA 5.0.0 beta10 getName() returns just their username. No discriminator. This is why a user saw this error https://discord.com/channels/246705793066467328/766713002489282680/1118283515352580116

We should update NamelessLink to use getAsTag() instead, until the username changes are rolled out globally on Discords end:
https://github.com/discord-jda/JDA/blob/e1103d99de516815c8b8f001c3b5187987e57c56/src/main/java/net/dv8tion/jda/internal/entities/UserImpl.java#L119-L125

@tadhgboyle tadhgboyle merged commit faf13b2 into develop Jun 13, 2023
@tadhgboyle tadhgboyle deleted the remove-discriminator branch June 13, 2023 21:32
@Derkades
Copy link
Member

I switched to getName because getAsTag was deprecated in a recent JDA update. I will update Nameless-Link to include a discriminator for now

samerton added a commit that referenced this pull request Sep 28, 2023
* Fix AuthMe enabled value (#3349)

* Add all missing languages to the Members module (#3350)

* Translated using translate.namelessmc.com

Co-authored-by: Knapp Bálint <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/hu/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/hu/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Forum

* Translated using translate.namelessmc.com

Co-authored-by: Dominik Roman <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/sk/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Wgis <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/ru/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-discord-integration/ru/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/ru/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Discord Integration
Translation: NamelessMC/Website - Forum

* Make sure Minecraft Integration is enabled (#3356)

* Add Russian translation (#3352)

Contributed by @Wgis in a github comment: #3350 (comment)

Co-authored-by: Ilya Finogenov <[email protected]>

* Translated using translate.namelessmc.com

Co-authored-by: NamelessMC Translations <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/nl/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/nl/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: Dominik Roman <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/sk/
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: enno123 <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/de/
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: Marcos <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/es/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/es/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: Fjuro <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/cs/
Translation: NamelessMC/Website - Members module

* Include .htaccess file in release zip (#3362)

* Fix missing cache settings (#3361)

* Fix user group isssue (#3365)

Closes #3363

* Fix forum title/description encoding on edit (#3359)

* Remove unable to update groups catch (#3360)

* Translated using translate.namelessmc.com

Co-authored-by: David Morales <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/es_419/
Translation: NamelessMC/Website - Members module

* Remove placeholder from singular message (#3369)

* Fix not being able to see Members page in Navigation settings (#3372)

* Translated using translate.namelessmc.com

Co-authored-by: enno123 <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/de/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Fjuro <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/cs/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Edouard DUCHESNES <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/fr/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-discord-integration/fr/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/fr/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Discord Integration
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: Marcos <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/es/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Mesutcan Yavuz <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/cookie-consent/tr/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/tr/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-discord-integration/tr/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/tr/
Translation: NamelessMC/Website - Cookie Consent
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Discord Integration
Translation: NamelessMC/Website - Forum

* Translated using translate.namelessmc.com

Co-authored-by: Mesutcan Yavuz <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/tr/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Maiu <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/nb_NO/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Dominik Roman <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/sk/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: andreas phillip søndergaard andersen <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/da/
Translation: NamelessMC/Website - Forum

* Fix multi query (#3383)

* Add id to default server

* Fix multiquery

* Fix icon not being properly shown (#3377)

* Fix ghost player on status page (#3351)

Co-authored-by: Tadhg Boyle <[email protected]>

* Translated using translate.namelessmc.com

Co-authored-by: andreas phillip søndergaard andersen <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/da/
Translation: NamelessMC/Website - Forum

* Translated using translate.namelessmc.com

Co-authored-by: NamelessMC Translations <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/nl/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Petr Kubinec <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/en_US/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/en_US/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/en_US/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Forum
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: untuned <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/en_US/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-members-module/en_US/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Members module

* Translated using translate.namelessmc.com

Co-authored-by: Mert <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/tr/
Translation: NamelessMC/Website - Core

* Translated using translate.namelessmc.com

Co-authored-by: Justman10000 <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/de/
Translation: NamelessMC/Website - Core

* Call `compileQueries` only when needed (#3386)

* Translated using translate.namelessmc.com

Co-authored-by: Justman10000 <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/de/
Translation: NamelessMC/Website - Core

* Remove Discord discriminator requirement (#3374)

* Fix outdated event

* Fix oauth linking for forced integrations (#3395)

* Require module autoload file before module init (#3397)

* Require module autoload file before module init

* Change module loading to require once

* Prepare 1.1.1 release (#3399)

* Small misc improvements (#3389)

* Support custom migration tables

* Allow specifying custom migrations directory

* PHP 7.4 fix

* Consistent parameters and add rollback function

* Update Phinx and fix migrations

* Tidy strtolower

* Phinx feature flags

* Make makeWhere function in DB class public

* Add new buildAssetPath function to URL class

---------

Co-authored-by: Robin Slot <[email protected]>

* Translated using translate.namelessmc.com

Co-authored-by: Justman10000 <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/de/
Translation: NamelessMC/Website - Core

* Rework user group cache issue (#3398)

* Add `PHP_SAPI` checks on scripts (#3403)

* Readd deleted term + fix discord oauth link success message (#3406)

* Revert deleted language term

Removed in a0e9ffb

@tadhgboyle

* Add success message for linking discord

* Translated using translate.namelessmc.com

Co-authored-by: enno123 <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/de/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/de/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Forum

* Fix typo in en_US.json (#3412)

* Fix auto verify oauth email (#3413)

* Translated using translate.namelessmc.com

Co-authored-by: Fjuro <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/cs/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/cs/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Forum

* Translated using translate.namelessmc.com

Co-authored-by: Andiv <[email protected]>
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/ru/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/nameless/uk/
Translate-URL: https://translate.namelessmc.com/projects/namelessmc/website-forum/ru/
Translation: NamelessMC/Website - Core
Translation: NamelessMC/Website - Forum

* Rewrite release script to fix checksums in upgrade package (#3414)

* Fix forum index showing topics without view other topics permission

* Ignore group sync request instead of returning error (#3433)

* Ignore group sync request instead of returning error

* Fix condition

* Remove return

* Limit logs & Support group sync from modules (#3426)

* Limit logs

* Support group sync from modules

* Ignore adding group if its invalid (#3436)

* Ignore adding group if its invalid (#3436)

* Fix phpdoc build, pin version (#3438)

* Fix single/double quote not working within member list username CSS (#3427)

* Prepare 2.1.2 release

---------

Co-authored-by: DominikSLK <[email protected]>
Co-authored-by: PadowYT2 <[email protected]>
Co-authored-by: Knapp Bálint <[email protected]>
Co-authored-by: Dominik Roman <[email protected]>
Co-authored-by: Wgis <[email protected]>
Co-authored-by: Partydragen <[email protected]>
Co-authored-by: Robin <[email protected]>
Co-authored-by: Ilya Finogenov <[email protected]>
Co-authored-by: NamelessMC Translations <[email protected]>
Co-authored-by: enno123 <[email protected]>
Co-authored-by: Marcos <[email protected]>
Co-authored-by: Fjuro <[email protected]>
Co-authored-by: David Morales <[email protected]>
Co-authored-by: Tadhg Boyle <[email protected]>
Co-authored-by: Edouard DUCHESNES <[email protected]>
Co-authored-by: Mesutcan Yavuz <[email protected]>
Co-authored-by: Maiu <[email protected]>
Co-authored-by: andreas phillip søndergaard andersen <[email protected]>
Co-authored-by: Supercrafter100 <[email protected]>
Co-authored-by: Petr Kubinec <[email protected]>
Co-authored-by: untuned <[email protected]>
Co-authored-by: Mert <[email protected]>
Co-authored-by: Justman10000 <[email protected]>
Co-authored-by: Robin Slot <[email protected]>
Co-authored-by: Andiv <[email protected]>
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.

5 participants