types: remove unneeded collector types (#7008)

This commit is contained in:
Suneet Tipirneni
2021-11-23 04:26:18 -05:00
committed by GitHub
parent a1a8ca4814
commit c1f2fe29ef

24
typings/index.d.ts vendored
View File

@@ -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;