From acf499fabe5edfdb8038c1f6fbc11f2a9638917a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 16 May 2017 12:21:41 +0000 Subject: [PATCH] Fix All Errors --- commands/moderation/ban.js | 2 +- commands/moderation/kick.js | 2 +- commands/moderation/lockdown.js | 4 ++-- commands/moderation/softban.js | 2 +- commands/moderation/unban.js | 2 +- commands/random/meme.js | 2 +- commands/random/soundboard.js | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 8a168eef..b4a65984 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -67,7 +67,7 @@ module.exports = class BanCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 1e95f6d2..5fb8a41a 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -66,7 +66,7 @@ module.exports = class KickCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/moderation/lockdown.js b/commands/moderation/lockdown.js index f39cad93..9554aa1f 100644 --- a/commands/moderation/lockdown.js +++ b/commands/moderation/lockdown.js @@ -40,14 +40,14 @@ module.exports = class LockdownCommand extends Command { Please use \`lockdown stop\` to end the lockdown. `); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred.'); } } else if (type === 'stop') { try { await msg.channel.overwritePermissions(msg.guild.defaultRole, { SEND_MESSAGES: true }); return msg.say('Lockdown Ended, users without Administrator can now post messages.'); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred.'); } } } diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 594fe96c..353a5265 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -70,7 +70,7 @@ module.exports = class SoftbanCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 43bdbbfb..dc1ab6f0 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -65,7 +65,7 @@ module.exports = class UnbanCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/random/meme.js b/commands/random/meme.js index f0587445..5d20cf2b 100644 --- a/commands/random/meme.js +++ b/commands/random/meme.js @@ -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.')); } }; diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js index 3417fac4..89d4ace1 100644 --- a/commands/random/soundboard.js +++ b/commands/random/soundboard.js @@ -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.'); } } };