Ignore DMs
This commit is contained in:
parent
184ec5076e
commit
564500869e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ client.on('message', async message => {
|
||||||
const args = message.content.slice(prefix.length).split(" ")
|
const args = message.content.slice(prefix.length).split(" ")
|
||||||
const commandName = args.shift().toLowerCase();
|
const commandName = args.shift().toLowerCase();
|
||||||
const command = client.commands.get(commandName);
|
const command = client.commands.get(commandName);
|
||||||
|
if (!message.guild) return;
|
||||||
if (message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
if (!message.content.startsWith(prefix)) return;
|
if (!message.content.startsWith(prefix)) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue