aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-05-28 21:55:26 -0600
committerTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-05-28 21:55:26 -0600
commit18f1af36bfe0a7c442ea5e80567a522a14bcbaf3 (patch)
tree4eeb10ccbe6d55bf85e3a64c1ad2a3aafed679fe /src/commands/dev
parent2456dab3db0d8eaae515606b83a6c0c317d009b0 (diff)
downloadtanzanite-18f1af36bfe0a7c442ea5e80567a522a14bcbaf3.tar.gz
tanzanite-18f1af36bfe0a7c442ea5e80567a522a14bcbaf3.tar.bz2
tanzanite-18f1af36bfe0a7c442ea5e80567a522a14bcbaf3.zip
format
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/reload.ts14
1 files changed, 3 insertions, 11 deletions
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<void> {
+ public async exec(message: Message, { fast }: { fast: boolean }): Promise<void> {
await message.util.send(await this.getResponse(fast));
}
- public async execSlash(
- message: CommandInteraction,
- { fast }: { fast: SlashCommandOption<boolean> }
- ): Promise<void> {
+ public async execSlash(message: CommandInteraction, { fast }: { fast: SlashCommandOption<boolean> }): Promise<void> {
await message.reply(await this.getResponse(fast?.value));
}
}