This commit is contained in:
Dragon Fire
2020-04-11 11:29:40 -04:00
parent dfe8c0a5e0
commit fe3a92a76e
13 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class WebhookCommand extends Command {
async run(msg, { content }) {
try {
if (msg.channel.type === 'text' && msg.deletable) await msg.delete();
if (msg.guild && msg.deletable) await msg.delete();
await this.client.webhook.send(content);
return null;
} catch (err) {