-
-
Notifications
You must be signed in to change notification settings - Fork 100
Modification of discriminator #1002
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
Modification of discriminator #1002
Conversation
|
.createGist() | ||
.public_(false) | ||
.description("Uploaded by " + event.getAuthor().getAsTag()); | ||
.description("Uploaded by @ " + event.getAuthor().getAsTag().replace("#0000", " ")); |
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.
is there any reason not to use event.getAuthor().getName()
here, you wouldn't need to replace anything.
There's still room for improvement, imo if we can retrieve user as Member, we can get the EffectiveName of user(nickname of user or username if it's null). Although i don't think event.getMember
works here, would need to retrieve user seperately what you think @Zabuzard ?
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.
yes, the correct fix is to not use tags as source for this. tags are not a thing anymore and names are now unique. so we should instead put the name.
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.
we shouldnt put the effective name though, cause we need to be able to find users uploading malicious content even after renaming or kicked. the account name is enough (or effective name + id)
@ankitsmt211 The file below is using : https://github.com/Together-Java/TJ-Bot/assets/34873349/3475bed6-87ea-4f5c-a027-cc949f429497) What else needed to be improved? |
seems alright, you can push the changes. |
@doshgo are you still working on this? any update, it's been a month old now. |
Hi, I wanna work on this. Can you assign the issue to me? |
Please check out my PR #1050 |
#1050 already merged which targets the same issue, closing this one now. |
Pull-request
Changes
resolves #867
Description
Invalid discriminator(#0000) shown for users with new username system in uploaded gist by TJ-Bot.