Ignore DMs

This commit is contained in:
SileNce5k 2021-03-09 18:22:24 +01:00
parent 184ec5076e
commit 564500869e
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -29,7 +29,7 @@ client.on('message', async message => {
const args = message.content.slice(prefix.length).split(" ")
const commandName = args.shift().toLowerCase();
const command = client.commands.get(commandName);
if (!message.guild) return;
if (message.author.bot) return;
if (!message.content.startsWith(prefix)) return;