Skip to content

Commit

Permalink
make init nonoptional for a generic interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime committed Oct 14, 2023
1 parent fb19e21 commit 84103c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export type ModalHandler = {
};

export type InteractionHandler = {
init?: () => Promise<void>;
init: () => Promise<void>;
};

export type CommandHandler = {
data: SlashCommandBuilder;
execute: (interaction: CommandInteraction) => Promise<void>;
autocomplete?: (interaction: AutocompleteInteraction) => Promise<void>;
} & InteractionHandler;
} & Partial<InteractionHandler>;

export class DiscordClient extends Client {
private clientId: string;
Expand Down

0 comments on commit 84103c8

Please sign in to comment.