From 0ea5152a49b1ea105c97ecca0f7ca9eae1ed4155 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 13 Feb 2021 18:19:07 -0500 Subject: [PATCH] Do not import IDs already in blacklist --- structures/Client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/structures/Client.js b/structures/Client.js index d7e46903..ed03eef5 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -70,10 +70,12 @@ module.exports = class XiaoClient extends CommandoClient { if (!file.guild || !file.user) return null; for (const id of file.guild) { if (typeof id !== 'string') continue; + if (this.blacklist.guild.includes(id)) continue; this.blacklist.guild.push(id); } for (const id of file.user) { if (typeof id !== 'string') continue; + if (this.blacklist.user.includes(id)) continue; this.blacklist.user.push(id); } return file;