diff --git a/commands/images/god.js b/commands/images/god.js index 0c91254..636e360 100644 --- a/commands/images/god.js +++ b/commands/images/god.js @@ -32,7 +32,9 @@ module.exports = class godCommand extends Command { const attachment = new Discord.Attachment(canvas.toBuffer(), 'edupspaint.png'); - message.say(attachment); + message.say(attachment).catch(error => { + message.say('an error as occured. Check the bot/channel permissions') + }) } }; \ No newline at end of file diff --git a/commands/images/human.js b/commands/images/human.js index 1f9f960..212b914 100644 --- a/commands/images/human.js +++ b/commands/images/human.js @@ -32,7 +32,9 @@ module.exports = class humanCommand extends Command { const attachment = new Discord.Attachment(canvas.toBuffer(), 'edupspaint.png'); - message.say(attachment); + message.say(attachment).catch(error => { + message.say('an error as occured. Check the bot/channel permissions') + }) } }; \ No newline at end of file diff --git a/commands/images/idubbbz.js b/commands/images/idubbbz.js index 45ede62..8c7e767 100644 --- a/commands/images/idubbbz.js +++ b/commands/images/idubbbz.js @@ -59,7 +59,9 @@ module.exports = class idubbbzCommand extends Command { const attachment = new Discord.Attachment(canvas.toBuffer(), 'edups.png'); - message.say(attachment); + message.say(attachment).catch(error => { + message.say('an error as occured. Check the bot/channel permissions') + }) } }; \ No newline at end of file diff --git a/commands/images/idubbbzpaint.js b/commands/images/idubbbzpaint.js index 33af0ea..e6c97e7 100644 --- a/commands/images/idubbbzpaint.js +++ b/commands/images/idubbbzpaint.js @@ -59,7 +59,9 @@ module.exports = class idubbbzpaintCommand extends Command { const attachment = new Discord.Attachment(canvas.toBuffer(), 'edupspaint.png'); - message.say(attachment); + message.say(attachment).catch(error => { + message.say('an error as occured. Check the bot/channel permissions') + }) } }; \ No newline at end of file diff --git a/commands/images/like.js b/commands/images/like.js index 7c92974..7bb0d7f 100644 --- a/commands/images/like.js +++ b/commands/images/like.js @@ -32,7 +32,9 @@ module.exports = class likeCommand extends Command { const attachment = new Discord.Attachment(canvas.toBuffer(), 'edupspaint.png'); - message.say(attachment); + message.say(attachment).catch(error => { + message.say('an error as occured. Check the bot/channel permissions') + }) } }; \ No newline at end of file