Omit catch block errors when not needed

This commit is contained in:
Dragon Fire
2020-03-14 11:57:15 -04:00
parent 6794cbfdc9
commit e7dfa229f1
15 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ module.exports = class ReportCommand extends Command {
try {
const channel = await this.client.channels.fetch(REPORT_CHANNEL_ID);
await channel.send({ embed });
} catch (err) {
} catch {
await this.sendOwnerDM(embed);
}
} else {
@@ -57,7 +57,7 @@ module.exports = class ReportCommand extends Command {
for (const owner of this.client.owners) {
try {
await owner.send({ embed });
} catch (err) {
} catch {
continue;
}
}