Open violine1101 opened 1 year ago
I can take a look at this later, but from what I can tell this would still leave #201 as an issue. Not sure if you'd want to figure out a solution for that here, or if you'd rather leave that alone right now.
I've specifically tested that case and it should work (though only with my second commit)
discord.js support for pomelo was added in 14.12.0 (currently using 14.2.0). user.tag
now returns username or username#tag whereas this getUserHandle returns @username
Purpose
Display new user handles as
@violine1101
and old ones asvioline1101#8993
everywhere.This also should fix the issue where messages could not be deleted if you had a new user handle.
Approach
Add a helper function in
DiscordUtil
to decide how to print the name. Also added two more helper function for consistent setting of embed footers and authors.Future work
We'll probably need to rework this with the next discord.js update anyway, I presume (though I haven't checked their progress on the matter)