aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/warn.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/warn.ts')
-rw-r--r--src/commands/moderation/warn.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/moderation/warn.ts b/src/commands/moderation/warn.ts
index d70c9f0..9df5891 100644
--- a/src/commands/moderation/warn.ts
+++ b/src/commands/moderation/warn.ts
@@ -47,13 +47,13 @@ export default class WarnCommand extends BushCommand {
reason
});
await entry.save();
- } catch (e) {
+ } catch {
await message.util.send('Error saving to database, please contact the developers');
return;
}
try {
await member.send(`You were warned in ${message.guild.name} for reason "${reason}".`);
- } catch (e) {
+ } catch {
await message.util.send('Error messaging user, warning still saved.');
return;
}