From 3a6e01d08e7033ee8a6250f1616d393625c54302 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Thu, 14 Sep 2023 20:34:11 +0100 Subject: [PATCH] discord string compare not integer --- meshmessaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshmessaging.js b/meshmessaging.js index c6fa6cc7..705c0e1f 100644 --- a/meshmessaging.js +++ b/meshmessaging.js @@ -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; } }); }); }