forked from embee/woomy
Fixed woomy in DM's
This commit is contained in:
parent
6bb1a160bd
commit
55d66f348d
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ module.exports = async (client, message) => {
|
||||||
.then(m => m.delete(2000));
|
.then(m => m.delete(2000));
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!perms.has('SEND_MESSAGES')) {
|
if (message.guild && !perms.has('SEND_MESSAGES')) {
|
||||||
return message.author.send(`<:error:466995152976871434> I don't have permission to speak in **#${message.channel.name}**, Please ask a moderator to give me the send messages permission!`);
|
return message.author.send(`<:error:466995152976871434> I don't have permission to speak in **#${message.channel.name}**, Please ask a moderator to give me the send messages permission!`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -224,4 +224,4 @@ module.exports = async (client, message) => {
|
||||||
client.logger.cmd(`${client.config.permLevels.find(l => l.level === level).name} ${message.author.username} (${message.author.id}) ran command ${cmd.help.name}`);
|
client.logger.cmd(`${client.config.permLevels.find(l => l.level === level).name} ${message.author.username} (${message.author.id}) ran command ${cmd.help.name}`);
|
||||||
|
|
||||||
cmd.run(client, message, args, level);
|
cmd.run(client, message, args, level);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue