From 40d48bbf5f4d322188aef5df2c3c9d6e061d117c Mon Sep 17 00:00:00 2001 From: Nick Clark Date: Sun, 18 Jan 2026 12:49:11 -0500 Subject: [PATCH 1/2] Fixing htis up --- src/commands/fun/subcommands/joke/index.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/commands/fun/subcommands/joke/index.ts b/src/commands/fun/subcommands/joke/index.ts index cf9c8497..c003573e 100644 --- a/src/commands/fun/subcommands/joke/index.ts +++ b/src/commands/fun/subcommands/joke/index.ts @@ -1,8 +1,5 @@ // src/commands/fun/subcommands/joke/index.ts -import { - SlashCommandSubcommandBuilder, - SlashCommandSubcommandGroupBuilder, -} from "discord.js"; +import { SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder } from "discord.js"; import type { ChatInputCommandInteraction } from "discord.js"; import { JOKE_CATEGORIES } from "../../../../services/joke/jokeStore.js"; import { handleJokeRandom } from "./random.js"; @@ -10,9 +7,7 @@ import { handleJokeAdd } from "./add.js"; import { handleJokeRemove } from "./remove.js"; import { handleJokeList } from "./list.js"; -export function buildJokeSubcommands( - subcommandGroup: SlashCommandSubcommandGroupBuilder, -) { +export function buildJokeSubcommands(subcommandGroup: SlashCommandSubcommandGroupBuilder) { return subcommandGroup .setName("joke") .setDescription("User-submitted jokes by generation") @@ -68,6 +63,7 @@ export function buildJokeSubcommands( export async function handleJoke( interaction: ChatInputCommandInteraction, ): Promise { + // For subcommand groups, we need to get the subcommand differently const subcommand = interaction.options.getSubcommand(); switch (subcommand) { From 12d17dc90730c1247aaf6e4f19a3ef9ab21be69e Mon Sep 17 00:00:00 2001 From: Nick Clark Date: Sun, 18 Jan 2026 12:49:15 -0500 Subject: [PATCH 2/2] style: auto-format with Prettier [skip-precheck] --- src/commands/fun/subcommands/joke/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/commands/fun/subcommands/joke/index.ts b/src/commands/fun/subcommands/joke/index.ts index c003573e..d3a7cb1e 100644 --- a/src/commands/fun/subcommands/joke/index.ts +++ b/src/commands/fun/subcommands/joke/index.ts @@ -1,5 +1,8 @@ // src/commands/fun/subcommands/joke/index.ts -import { SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder } from "discord.js"; +import { + SlashCommandSubcommandBuilder, + SlashCommandSubcommandGroupBuilder, +} from "discord.js"; import type { ChatInputCommandInteraction } from "discord.js"; import { JOKE_CATEGORIES } from "../../../../services/joke/jokeStore.js"; import { handleJokeRandom } from "./random.js"; @@ -7,7 +10,9 @@ import { handleJokeAdd } from "./add.js"; import { handleJokeRemove } from "./remove.js"; import { handleJokeList } from "./list.js"; -export function buildJokeSubcommands(subcommandGroup: SlashCommandSubcommandGroupBuilder) { +export function buildJokeSubcommands( + subcommandGroup: SlashCommandSubcommandGroupBuilder, +) { return subcommandGroup .setName("joke") .setDescription("User-submitted jokes by generation")