Lots of Changes

This commit is contained in:
Daniel Odendahl Jr
2017-09-05 03:07:03 +00:00
parent 56f5c48ff8
commit 1c9b5156e9
19 changed files with 76 additions and 120 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ module.exports = class WebhookCommand extends Command {
async run(msg, args) {
const { content } = args;
if (msg.guild && msg.channel.permissionsFor(this.client.user).has('MANAGE_MESSAGES')) await msg.delete();
if (msg.channel.type === 'text' && msg.channel.permissionsFor(this.client.user).has('MANAGE_MESSAGES')) {
await msg.delete();
}
try {
await snekfetch
.post(WEBHOOK_URL)