Skip to content

Commit

Permalink
type: discordjsのアプデに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
moeyashi committed May 25, 2024
1 parent bc77842 commit b8fa477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {
ClientEvents,
GuildMember,
SlashCommandBuilder,
SlashCommandOptionsOnlyBuilder,
} from "discord.js";

export type UnwrapPromise<T> = T extends Promise<infer U> ? U : T;
Expand Down Expand Up @@ -53,7 +54,7 @@ export type Event<EventName extends EventType> = {
export type SlashCommand = {
data:
| SlashCommandBuilder
| Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
| SlashCommandOptionsOnlyBuilder;
execute: (
interaction: ChatInputCommandInteraction<CacheType>,
nitaRepository: NitaRepository
Expand Down

0 comments on commit b8fa477

Please sign in to comment.