mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Fix All Errors
This commit is contained in:
@@ -42,6 +42,6 @@ module.exports = class MemeCommand extends Command {
|
||||
return msg.say('This Command requires the `Attach Files` Permission.');
|
||||
const { type, top, bottom } = args;
|
||||
return msg.say({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] })
|
||||
.catch(err => msg.say('No Results.'));
|
||||
.catch(() => msg.say('An Error Occurred while sending the image.'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = class SoundboardCommand extends Command {
|
||||
return null;
|
||||
});
|
||||
} catch (err) {
|
||||
return msg.say('No Results.');
|
||||
return msg.say('An Error Occurred.');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user