This commit is contained in:
Erik 2021-06-19 22:35:42 +03:00
parent 9079329b54
commit b8246b3960
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 || '0'].includes(guild.id)) return; if (![this.mainServer.id, 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);