Skip to content

Commit

Permalink
types: remove unneeded collector types (#7008)
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Nov 23, 2021
1 parent a1a8ca4 commit c1f2fe2
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4428,30 +4428,6 @@ export interface InteractionCollectorOptions<T extends Interaction, Cached exten
message?: CacheTypeReducer<Cached, Message, APIMessage>;
}

export interface ButtonInteractionCollectorOptions<Cached = boolean>
extends MessageComponentCollectorOptions<Cached extends true ? ButtonInteraction<'cached'> : ButtonInteraction> {
componentType: 'BUTTON' | MessageComponentTypes.BUTTON;
}

export interface SelectMenuInteractionCollectorOptions<Cached = boolean>
extends MessageComponentCollectorOptions<
Cached extends true ? SelectMenuInteraction<'cached'> : SelectMenuInteraction
> {
componentType: 'SELECT_MENU' | MessageComponentTypes.SELECT_MENU;
}

export interface MessageInteractionCollectorOptions<Cached = boolean>
extends MessageComponentCollectorOptions<
Cached extends true ? MessageComponentInteraction<'cached'> : MessageComponentInteraction
> {
componentType: 'ACTION_ROW' | MessageComponentTypes.ACTION_ROW;
}

export type InteractionCollectorOptionsResolvable<Cached = boolean> =
| MessageInteractionCollectorOptions<Cached>
| SelectMenuInteractionCollectorOptions<Cached>
| ButtonInteractionCollectorOptions<Cached>;

export interface InteractionDeferReplyOptions {
ephemeral?: boolean;
fetchReply?: boolean;
Expand Down

0 comments on commit c1f2fe2

Please sign in to comment.