mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(CommandInteraction): channel type should be text based channels (#5690)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -15,6 +15,13 @@ class CommandInteraction extends Interaction {
|
||||
constructor(client, data) {
|
||||
super(client, data);
|
||||
|
||||
/**
|
||||
* The channel this interaction was sent in
|
||||
* @type {?TextChannel|NewsChannel|DMChannel}
|
||||
* @name CommandInteraction#channel
|
||||
* @readonly
|
||||
*/
|
||||
|
||||
/**
|
||||
* The ID of the invoked application command
|
||||
* @type {Snowflake}
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -437,6 +437,7 @@ declare module 'discord.js' {
|
||||
|
||||
export class CommandInteraction extends Interaction {
|
||||
public readonly command: ApplicationCommand | null;
|
||||
public channel: TextChannel | DMChannel | NewsChannel;
|
||||
public commandID: string;
|
||||
public commandName: string;
|
||||
public deferred: boolean;
|
||||
|
||||
Reference in New Issue
Block a user