so I'm creating a bot using Node.JS / Discord.JS and I have a question.
On some servers, when you mention a user, it returns in the console as <@!userid> and on other it returns as <@userid>.
My bot has a simple points / level system, and it saves in a JSON file as <@!userid>, so on some servers when trying to look at a users points by mentioning them will work, and on others it won't.
Does anyone have any idea how to fix this? I've tried to find an answer many times, and I don't want to have it save twice, once as <@!userid> and then <@userid>. If this is the only way to fix it then I understand.
Thanks for your help!