diff --git a/src/features/commands/internal/CommandBase/internal/CommandBase.class.ts b/src/features/commands/internal/CommandBase/internal/CommandBase.class.ts index 46e24e6a..ec57a3cf 100644 --- a/src/features/commands/internal/CommandBase/internal/CommandBase.class.ts +++ b/src/features/commands/internal/CommandBase/internal/CommandBase.class.ts @@ -1,3 +1,5 @@ +import type { ApplicationCommandOptionData } from '@/features/library/index.js'; + import type { InteractArgs } from './CommandBase.types.js'; export abstract class CommandBase { @@ -11,6 +13,10 @@ export abstract class CommandBase { * この値がそのままコマンドの説明として表示される */ public abstract readonly description: string; + /** + * オプション + */ + public readonly options?: ReadonlyArray; public readonly register = () => this; diff --git a/src/features/commands/internal/Ping/internal/funcs/getRTT/index.ts b/src/features/commands/internal/Ping/internal/funcs/getRTT/index.ts index 8c2fd971..a3ea5d78 100644 --- a/src/features/commands/internal/Ping/internal/funcs/getRTT/index.ts +++ b/src/features/commands/internal/Ping/internal/funcs/getRTT/index.ts @@ -1 +1 @@ -export { getRTT } from './internal/getRTT.js'; +export { getRTT } from './internal/getRTT.func.js'; diff --git a/src/features/commands/internal/Ping/internal/funcs/getRTT/internal/getRTT.ts b/src/features/commands/internal/Ping/internal/funcs/getRTT/internal/getRTT.func.ts similarity index 100% rename from src/features/commands/internal/Ping/internal/funcs/getRTT/internal/getRTT.ts rename to src/features/commands/internal/Ping/internal/funcs/getRTT/internal/getRTT.func.ts diff --git a/src/features/library/index.ts b/src/features/library/index.ts index 93cd7180..5e17f2c0 100644 --- a/src/features/library/index.ts +++ b/src/features/library/index.ts @@ -5,5 +5,6 @@ export { InteractionType, GatewayIntentBits, ChatInputCommandInteraction, + ApplicationCommandOptionType, } from 'discord.js'; -export type { CacheType } from 'discord.js'; +export type { CacheType, ApplicationCommandOptionData } from 'discord.js'; diff --git a/src/features/others/Error/LogicException.ts b/src/features/others/Error/LogicException.ts new file mode 100644 index 00000000..2ce616b9 --- /dev/null +++ b/src/features/others/Error/LogicException.ts @@ -0,0 +1,4 @@ +/** + * プログラマが間違ってる系の例外 + */ +export class LogicException extends Error {}