This commit is contained in:
Erik 2022-07-27 16:16:22 +03:00
parent d13452fe3f
commit 070cc46fca
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -34,8 +34,10 @@ class CommandHandler extends Observer {
const userWrapper = await this.client.getUserWrapper(message.author.id); const userWrapper = await this.client.getUserWrapper(message.author.id);
if (message.guild) {
const settings = await message.guildWrapper.settings(); const settings = await message.guildWrapper.settings();
if (!settings.textcommands.enabled && !userWrapper.developer) return; if (!settings.textcommands.enabled && !userWrapper.developer) return;
}
if(message.guild) { if(message.guild) {
if(!message.member) await message.guild.members.fetch(message.author.id); if(!message.member) await message.guild.members.fetch(message.author.id);