mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
fix: Interaction channel type should be GuildTextBasedChannels when in guild (#6998)
This commit is contained in:
10
typings/index.d.ts
vendored
10
typings/index.d.ts
vendored
@@ -28,6 +28,7 @@ import {
|
|||||||
APIApplicationCommandPermission,
|
APIApplicationCommandPermission,
|
||||||
APIAuditLogChange,
|
APIAuditLogChange,
|
||||||
APIButtonComponent,
|
APIButtonComponent,
|
||||||
|
APIChannel,
|
||||||
APIEmbed,
|
APIEmbed,
|
||||||
APIEmoji,
|
APIEmoji,
|
||||||
APIInteractionDataResolvedChannel,
|
APIInteractionDataResolvedChannel,
|
||||||
@@ -1206,7 +1207,13 @@ export class Interaction<Cached extends CacheType = CacheType> extends Base {
|
|||||||
private readonly _cacheType: Cached;
|
private readonly _cacheType: Cached;
|
||||||
protected constructor(client: Client, data: RawInteractionData);
|
protected constructor(client: Client, data: RawInteractionData);
|
||||||
public applicationId: Snowflake;
|
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 channelId: Snowflake | null;
|
||||||
public readonly createdAt: Date;
|
public readonly createdAt: Date;
|
||||||
public readonly createdTimestamp: number;
|
public readonly createdTimestamp: number;
|
||||||
@@ -1505,7 +1512,6 @@ export class MessageCollector extends Collector<Snowflake, Message> {
|
|||||||
|
|
||||||
export class MessageComponentInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
|
export class MessageComponentInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
|
||||||
protected constructor(client: Client, data: RawMessageComponentInteractionData);
|
protected constructor(client: Client, data: RawMessageComponentInteractionData);
|
||||||
public readonly channel: CacheTypeReducer<Cached, TextBasedChannels | null>;
|
|
||||||
public readonly component: CacheTypeReducer<
|
public readonly component: CacheTypeReducer<
|
||||||
Cached,
|
Cached,
|
||||||
MessageActionRowComponent,
|
MessageActionRowComponent,
|
||||||
|
|||||||
Reference in New Issue
Block a user