From 41d12b07a9d7c27d9dedd1d717bbe1052bc89949 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji <88056492+atridadl@users.noreply.github.com> Date: Thu, 29 Jun 2023 21:45:07 -0600 Subject: [PATCH] cleanup --- src/commands/ask.ts | 2 +- src/commands/disclosure.ts | 6 +----- src/commands/pic.ts | 2 +- src/commands/support.ts | 6 +----- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/commands/ask.ts b/src/commands/ask.ts index edf4a69..0c29d90 100644 --- a/src/commands/ask.ts +++ b/src/commands/ask.ts @@ -16,7 +16,7 @@ export class UserCommand extends Command { // Register Chat Input and Context Menu command public override registerApplicationCommands(registry: Command.Registry) { registry.registerChatInputCommand((builder) => - builder // + builder .setName(this.name) .setDescription(this.description) .addStringOption((option) => diff --git a/src/commands/disclosure.ts b/src/commands/disclosure.ts index 646537b..ab5fcdb 100644 --- a/src/commands/disclosure.ts +++ b/src/commands/disclosure.ts @@ -8,11 +8,7 @@ import { Message } from 'discord.js'; export class UserCommand extends Command { // Register Chat Input and Context Menu command public override registerApplicationCommands(registry: Command.Registry) { - registry.registerChatInputCommand((builder) => - builder // - .setName(this.name) - .setDescription(this.description) - ); + registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description)); } // Message command diff --git a/src/commands/pic.ts b/src/commands/pic.ts index f81880b..8c72d45 100644 --- a/src/commands/pic.ts +++ b/src/commands/pic.ts @@ -16,7 +16,7 @@ export class UserCommand extends Command { // Register Chat Input and Context Menu command public override registerApplicationCommands(registry: Command.Registry) { registry.registerChatInputCommand((builder) => - builder // + builder .setName(this.name) .setDescription(this.description) .addStringOption((option) => option.setName('prompt').setDescription('Make a picture!').setRequired(true)) diff --git a/src/commands/support.ts b/src/commands/support.ts index 20ae97c..db3b8f7 100644 --- a/src/commands/support.ts +++ b/src/commands/support.ts @@ -8,11 +8,7 @@ import { Message } from 'discord.js'; export class UserCommand extends Command { // Register Chat Input and Context Menu command public override registerApplicationCommands(registry: Command.Registry) { - registry.registerChatInputCommand((builder) => - builder // - .setName(this.name) - .setDescription(this.description) - ); + registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description)); } // Message command