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
@@ -22,7 +22,7 @@ module.exports = class MockingCommand extends Command {
}
run(msg, { text }) {
const canEmoji = msg.channel.type === 'text'
const canEmoji = msg.guild
? msg.channel.permissionsFor(this.client.user).has('USE_EXTERNAL_EMOJIS')
: true;
const letters = text.split('');
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class SayCommand extends Command {
async run(msg, { text }) {
try {
if (msg.channel.type === 'text' && msg.deletable) await msg.delete();
if (msg.guild && msg.deletable) await msg.delete();
return msg.say(text);
} catch {
return msg.say(text);
+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) {