Merge pull request #5350 from Ylianst/fix-discord-hash

fix discord hash compare
This commit is contained in:
Ylian Saint-Hilaire 2023-09-15 17:36:42 -07:00 committed by GitHub
commit f7f59483a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ module.exports.CreateServer = function (parent) {
var guild = await value.fetch();
const guildMembers = await guild.members.search({ query: username });
guildMembers.forEach(async function (value, key) {
if ((value.user.username + '#' + value.user.discriminator) == userTag) { func(key); return; }
if ((value.user.username + (value.user.discriminator != '0' ? '#' + value.user.discriminator : ''))== userTag) { func(key); return; }
});
});
}