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
@@ -45,7 +45,7 @@ module.exports = class MemeCommand extends Command {
run(message, args) {
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 { type, toprow, bottomrow } = args;
return message.channel.send({files: [`https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`]})