Skip to content

Commit

Permalink
fix: Interaction channel type should be GuildTextBasedChannels when…
Browse files Browse the repository at this point in the history
… in guild (#6998)
  • Loading branch information
suneettipirneni committed Dec 1, 2021
1 parent c07207f commit da86bd4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions typings/index.d.ts
Expand Up @@ -28,6 +28,7 @@ import {
APIApplicationCommandPermission,
APIAuditLogChange,
APIButtonComponent,
APIChannel,
APIEmbed,
APIEmoji,
APIInteractionDataResolvedChannel,
Expand Down Expand Up @@ -1206,7 +1207,13 @@ export class Interaction<Cached extends CacheType = CacheType> extends Base {
private readonly _cacheType: Cached;
protected constructor(client: Client, data: RawInteractionData);
public applicationId: Snowflake;
public readonly channel: CacheTypeReducer<Cached, TextBasedChannels | null>;
public readonly channel: CacheTypeReducer<
Cached,
GuildTextBasedChannel | null,
GuildTextBasedChannel | null,
GuildTextBasedChannel | null,
TextBasedChannels | null
>;
public channelId: Snowflake | null;
public readonly createdAt: Date;
public readonly createdTimestamp: number;
Expand Down Expand Up @@ -1505,7 +1512,6 @@ export class MessageCollector extends Collector<Snowflake, Message> {

export class MessageComponentInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
protected constructor(client: Client, data: RawMessageComponentInteractionData);
public readonly channel: CacheTypeReducer<Cached, TextBasedChannels | null>;
public readonly component: CacheTypeReducer<
Cached,
MessageActionRowComponent,
Expand Down

0 comments on commit da86bd4

Please sign in to comment.