1
0
Fork 0

Send message when error occured

Commando
loicbersier 6 years ago
parent 536cb5bf41
commit 78d4499912

@ -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')
})
}
};

@ -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')
})
}
};

@ -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')
})
}
};

@ -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')
})
}
};

@ -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')
})
}
};
Loading…
Cancel
Save