discord string compare not integer

This commit is contained in:
Simon Smith 2023-09-14 20:34:11 +01:00 committed by GitHub
parent 3ce50b5cc1
commit 3a6e01d08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 != 0 ? '#' + value.user.discriminator : ''))== userTag) { func(key); return; }
if ((value.user.username + (value.user.discriminator != '0' ? '#' + value.user.discriminator : ''))== userTag) { func(key); return; }
});
});
}