From 18f1af36bfe0a7c442ea5e80567a522a14bcbaf3 Mon Sep 17 00:00:00 2001 From: TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> Date: Fri, 28 May 2021 21:55:26 -0600 Subject: format --- src/commands/dev/reload.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/commands/dev') diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts index 36c6fd7..0cf32ce 100644 --- a/src/commands/dev/reload.ts +++ b/src/commands/dev/reload.ts @@ -42,9 +42,7 @@ export default class ReloadCommand extends BushCommand { this.client.commandHandler.reloadAll(); this.client.listenerHandler.reloadAll(); this.client.inhibitorHandler.reloadAll(); - return `🔁 Successfully reloaded! (${ - new Date().getTime() - s.getTime() - }ms)`; + return `🔁 Successfully reloaded! (${new Date().getTime() - s.getTime()}ms)`; } catch (e) { return stripIndent` An error occured while reloading: @@ -53,17 +51,11 @@ export default class ReloadCommand extends BushCommand { } } - public async exec( - message: Message, - { fast }: { fast: boolean } - ): Promise { + public async exec(message: Message, { fast }: { fast: boolean }): Promise { await message.util.send(await this.getResponse(fast)); } - public async execSlash( - message: CommandInteraction, - { fast }: { fast: SlashCommandOption } - ): Promise { + public async execSlash(message: CommandInteraction, { fast }: { fast: SlashCommandOption }): Promise { await message.reply(await this.getResponse(fast?.value)); } } -- cgit