Closed KommentatorForAll closed 2 years ago
So basically this function expects a memeber to be passed but there is no member in dm's. You best bet would be pass
client.guilds.cache.get(config.defaultGuild).members.fetch(message.user.id);
Actually since this is in auto mod just ignore dm;s in automod
When one writes a message to the bot via dm, the following error occures: