diff options
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 { |