Fix Error Messages

This commit is contained in:
Daniel Odendahl Jr
2017-05-16 12:17:52 +00:00
parent a140a30fcc
commit 897978ef73
46 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ module.exports = class SpamCommand extends Command {
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] })
.catch(err => msg.say(err));
.catch(() => msg.say('An Error Occurred while sending the image.'));
}
};