Fix All Errors

This commit is contained in:
Daniel Odendahl Jr
2017-05-16 12:21:41 +00:00
parent 897978ef73
commit acf499fabe
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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.');
}
}
};
+1 -1
View File
@@ -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.');
}
}
};
+2 -2
View File
@@ -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.');
}
}
}
+1 -1
View File
@@ -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.');
}
}
};
+1 -1
View File
@@ -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.');
}
}
};
+1 -1
View File
@@ -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.'));
}
};
+1 -1
View File
@@ -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.');
}
}
};