maddinat0r / samp-discord-connector

SA:MP plugin which controls a Discord bot
MIT License
114 stars 57 forks source link

new usernames issue #257

Closed ihaswn closed 1 year ago

ihaswn commented 1 year ago

since discord is envolving and updating the usernames (https://support.discord.com/hc/en-us/articles/12620128861463-New-Usernames-Display-Names#h_01GXPQAGG6W477HSC5SR053QG1), the old username#id is not going to work, and with that this plugin wont work, the DCC_FindUserByName is not going to work and i no longer can find a user by its name#id.

since username is not fully updated and is activating for everybody one by one, i suggest to update DCC_FindUserByName, if i need to get client by a new username set the second param to a empty string ("") so both username types still be accessable

marcelog09 commented 1 year ago

+UP

sunkie1 commented 1 year ago

+1, In my case the ID is 0 for every username. https://i.imgur.com/PEPZYXx.png

iMarkeh18 commented 1 year ago

up

ihaswn commented 1 year ago

fix: you can use #0 for new usernames, like username#0