From 153a40fbcd314459f94d9a2b44d3466c930c4e35 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 4 Jul 2021 16:26:56 -0400 Subject: cleaned up --- src/commands/moderation/kick.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation/kick.ts') diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts index f88819b..f8bb5a1 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kick.ts @@ -76,13 +76,13 @@ export default class KickCommand extends BushCommand { // }); // await modlogEnry.save(); // } catch (e) { - // this.client.console.error(`KickCommand`, `Error saving to database. ${typeof e === 'object' ? e?.stack : e}`); + // this.client.console.error(`KickCommand`, `Error saving to database. ${e?.stack || e}`); // yield `${this.client.util.emojis.error} Error saving to database. Please report this to a developer.`; // return; // } // try { // await user.send(`You were kicked in ${message.guild.name} with reason \`${reason || 'No reason given'}\``); - // } catch (e) { + // } catch { // yield `${this.client.util.emojis.warn} Unable to dm user`; // } // try { -- cgit