mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Bug Catching in File Commands
This commit is contained in:
@@ -49,6 +49,6 @@ module.exports = class MemeCommand extends Command {
|
||||
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`]})
|
||||
.catch(() => msg.say('An Unknown Error Occurred.'));
|
||||
.catch(err => msg.say(`An Error Occurred: ${err}`));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user