This commit is contained in:
Erik 2021-06-19 22:33:16 +03:00
parent 557bc23248
commit 9079329b54
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -95,7 +95,7 @@ class ModmailClient extends Client {
const { prefix } = this; const { prefix } = this;
const { channel, guild, content, member } = message; 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; if (!content || !content.startsWith(prefix)) return;
const roles = member.roles.cache.map((r) => r.id); const roles = member.roles.cache.map((r) => r.id);