msg.say files, HTML

This commit is contained in:
Daniel Odendahl Jr
2017-05-16 03:27:31 +00:00
parent 9413bb3008
commit c08a69db7c
24 changed files with 54 additions and 93 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = class MemeCommand extends Command {
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
const { type, top, bottom } = args;
return msg.channel.send({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] })
return msg.say({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] })
.catch(err => msg.say(err));
}
};
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class SpamCommand extends Command {
if (msg.channel.type !== 'dm')
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
return msg.channel.send({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] })
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] })
.catch(err => msg.say(err));
}
};