diff --git a/packages/discord.js/src/structures/InteractionCollector.js b/packages/discord.js/src/structures/InteractionCollector.js index ca93af7f7..56821f39f 100644 --- a/packages/discord.js/src/structures/InteractionCollector.js +++ b/packages/discord.js/src/structures/InteractionCollector.js @@ -6,9 +6,9 @@ const Events = require('../util/Events'); /** * @typedef {CollectorOptions} InteractionCollectorOptions - * @property {TextBasedChannels} [channel] The channel to listen to interactions from + * @property {TextBasedChannelResolvable} [channel] The channel to listen to interactions from * @property {ComponentType} [componentType] The type of component to listen for - * @property {Guild} [guild] The guild to listen to interactions from + * @property {GuildResolvable} [guild] The guild to listen to interactions from * @property {InteractionType} [interactionType] The type of interaction to listen for * @property {number} [max] The maximum total amount of interactions to collect * @property {number} [maxComponents] The maximum number of components to collect diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 764ed7a74..e09b01be8 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4459,9 +4459,9 @@ export type IntegrationType = 'twitch' | 'youtube' | 'discord'; export interface InteractionCollectorOptions extends CollectorOptions<[T]> { - channel?: TextBasedChannel; + channel?: TextBasedChannelResolvable; componentType?: ComponentType; - guild?: Guild; + guild?: GuildResolvable; interactionType?: InteractionType; max?: number; maxComponents?: number; @@ -4976,6 +4976,8 @@ export type GuildTextBasedChannel = Extract export type TextChannelResolvable = Snowflake | TextChannel; +export type TextBasedChannelResolvable = Snowflake | TextBasedChannel; + export type ThreadAutoArchiveDuration = 60 | 1440 | 4320 | 10080 | 'MAX'; export type ThreadChannelResolvable = ThreadChannel | Snowflake;