mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
types(InteractionCollector): Fix guild and channel types (#7624)
This commit is contained in:
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -4896,9 +4896,9 @@ export type IntegrationType = 'twitch' | 'youtube' | 'discord';
|
||||
|
||||
export interface InteractionCollectorOptions<T extends Interaction, Cached extends CacheType = CacheType>
|
||||
extends CollectorOptions<[T]> {
|
||||
channel?: TextBasedChannel;
|
||||
channel?: TextBasedChannelResolvable;
|
||||
componentType?: MessageComponentType | MessageComponentTypes;
|
||||
guild?: Guild;
|
||||
guild?: GuildResolvable;
|
||||
interactionType?: InteractionType | InteractionTypes;
|
||||
max?: number;
|
||||
maxComponents?: number;
|
||||
@@ -5624,6 +5624,8 @@ export type GuildTextBasedChannel = Extract<GuildBasedChannel, TextBasedChannel>
|
||||
|
||||
export type TextChannelResolvable = Snowflake | TextChannel;
|
||||
|
||||
export type TextBasedChannelResolvable = Snowflake | TextBasedChannel;
|
||||
|
||||
export type ThreadAutoArchiveDuration = 60 | 1440 | 4320 | 10080 | 'MAX';
|
||||
|
||||
export type ThreadChannelResolvable = ThreadChannel | Snowflake;
|
||||
|
||||
Reference in New Issue
Block a user