Fix Error

This commit is contained in:
Daniel Odendahl Jr
2017-04-26 17:31:15 +00:00
parent 291aaa7f08
commit aeeb2d0924
45 changed files with 55 additions and 55 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class CatCommand extends Command {
run(message) {
if (message.channel.type !== 'dm')
if (!message.channel.permissionsFor(this.client.user).permissions.has('ATTACH_FILES'))
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES'))
return message.say('This Command requires the `Attach Files` Permission.');
const cat = cats[Math.floor(Math.random() * cats.length)];
return message.channel.send({files: [`./images/Cat${cat}`]});
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class PotatoCommand extends Command {
run(message) {
if (message.channel.type !== 'dm')
if (!message.channel.permissionsFor(this.client.user).permissions.has('ATTACH_FILES'))
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES'))
return message.say('This Command requires the `Attach Files` Permission.');
const potato = potatoes[Math.floor(Math.random() * potatoes.length)];
return message.channel.send({files: [`./images/Potato${potato}`]});
+1 -1
View File
@@ -13,7 +13,7 @@ module.exports = class RandomPunCommand extends Command {
run(message) {
if (message.channel.type !== 'dm')
if (!message.channel.permissionsFor(this.client.user).permissions.has('ATTACH_FILES'))
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES'))
return message.say('This Command requires the `Attach Files` Permission.');
const pun = puns[Math.floor(Math.random() * puns.length)];
return message.channel.send({files: [`./images/Pun${pun}`]});
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class XiaoCommand extends Command {
run(message) {
if (message.channel.type !== 'dm')
if (!message.channel.permissionsFor(this.client.user).permissions.has('ATTACH_FILES'))
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES'))
return message.say('This Command requires the `Attach Files` Permission.');
const xiao = xiaos[Math.floor(Math.random() * xiaos.length)];
return message.channel.send({files: [`./images/Xiao${xiao}`]});