From 9079329b5418b9b715921aefc4ec923aaf24fcba Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 19 Jun 2021 22:33:16 +0300 Subject: [PATCH] bruh --- structure/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/Client.js b/structure/Client.js index 4e4cdf6..1aac60c 100644 --- a/structure/Client.js +++ b/structure/Client.js @@ -95,7 +95,7 @@ class ModmailClient extends Client { const { prefix } = this; const { channel, guild, content, member } = message; - if (![this.mainServer.idm, this.bansServer.id].includes(guild.id)) return; + if (![this.mainServer.idm, this.bansServer?.id || '0'].includes(guild.id)) return; if (!content || !content.startsWith(prefix)) return; const roles = member.roles.cache.map((r) => r.id);