From 57de6733b62c83ff197f9236f71545d8ef1e1103 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 May 2021 04:01:47 +0000 Subject: Automatically format code --- src/commands/moderation/kick.ts | 12 ++++++++++-- 1 file changed, 10 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 182485a..c5581f6 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kick.ts @@ -46,7 +46,11 @@ export default class KickCommand extends BushCommand { }); } - private async *genResponses(message: Message | CommandInteraction, user: GuildMember, reason?: string): AsyncIterable { + private async *genResponses( + message: Message | CommandInteraction, + user: GuildMember, + reason?: string + ): AsyncIterable { let modlogEnry: Modlog; // Create guild entry so postgres doesn't get mad when I try and add a modlog entry await Guild.findOrCreate({ @@ -77,7 +81,11 @@ export default class KickCommand extends BushCommand { yield 'Error sending message to user'; } try { - await user.kick(`Kicked by ${message instanceof Message ? message.author.tag : message.user.tag} with ${reason ? `reason ${reason}` : 'no reason'}`); + await user.kick( + `Kicked by ${message instanceof Message ? message.author.tag : message.user.tag} with ${ + reason ? `reason ${reason}` : 'no reason' + }` + ); } catch { yield 'Error kicking :/'; await modlogEnry.destroy(); -- cgit