diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-04 16:26:56 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-04 16:26:56 -0400 |
commit | 153a40fbcd314459f94d9a2b44d3466c930c4e35 (patch) | |
tree | 5c853355da693e68c393b38c0c66a1f84ef0ac89 /src/commands/moderation/warn.ts | |
parent | cf564dbb6435886f97e2e9870363144386af368d (diff) | |
download | tanzanite-153a40fbcd314459f94d9a2b44d3466c930c4e35.tar.gz tanzanite-153a40fbcd314459f94d9a2b44d3466c930c4e35.tar.bz2 tanzanite-153a40fbcd314459f94d9a2b44d3466c930c4e35.zip |
cleaned up
Diffstat (limited to 'src/commands/moderation/warn.ts')
-rw-r--r-- | src/commands/moderation/warn.ts | 4 |
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; } |