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/kick.ts | |
parent | cf564dbb6435886f97e2e9870363144386af368d (diff) | |
download | tanzanite-153a40fbcd314459f94d9a2b44d3466c930c4e35.tar.gz tanzanite-153a40fbcd314459f94d9a2b44d3466c930c4e35.tar.bz2 tanzanite-153a40fbcd314459f94d9a2b44d3466c930c4e35.zip |
cleaned up
Diffstat (limited to 'src/commands/moderation/kick.ts')
-rw-r--r-- | src/commands/moderation/kick.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |