Skip to content

Commit

Permalink
足回り改修
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Nov 13, 2023
1 parent 24d26b7 commit 138e5f8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { ApplicationCommandOptionData } from '@/features/library/index.js';

import type { InteractArgs } from './CommandBase.types.js';

export abstract class CommandBase {
Expand All @@ -11,6 +13,10 @@ export abstract class CommandBase {
* この値がそのままコマンドの説明として表示される
*/
public abstract readonly description: string;
/**
* オプション
*/
public readonly options?: ReadonlyArray<ApplicationCommandOptionData>;

public readonly register = () => this;

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { getRTT } from './internal/getRTT.js';
export { getRTT } from './internal/getRTT.func.js';
3 changes: 2 additions & 1 deletion src/features/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
4 changes: 4 additions & 0 deletions src/features/others/Error/LogicException.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* プログラマが間違ってる系の例外
*/
export class LogicException extends Error {}

0 comments on commit 138e5f8

Please sign in to comment.