diff --git a/src/structures/CommandInteraction.js b/src/structures/CommandInteraction.js index f2ec8263e592..54d6b943c941 100644 --- a/src/structures/CommandInteraction.js +++ b/src/structures/CommandInteraction.js @@ -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} diff --git a/typings/index.d.ts b/typings/index.d.ts index ac8da4bf7b95..3c72238990d3 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;