Skip to content

Commit

Permalink
docs: CommandInteraction#channelID is type of Snowflake (#5776)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbioj authored Jun 8, 2021
1 parent 84e5b07 commit 32d8c8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structures/CommandInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class CommandInteraction extends Interaction {
* @readonly
*/

/**
* The ID of the channel this interaction was sent in
* @type {Snowflake}
* @name CommandInteraction#channelID
*/

/**
* The ID of the invoked application command
* @type {Snowflake}
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ declare module 'discord.js' {
export class CommandInteraction extends Interaction {
public readonly command: ApplicationCommand | null;
public channel: TextChannel | DMChannel | NewsChannel;
public channelID: Snowflake;
public commandID: Snowflake;
public commandName: string;
public deferred: boolean;
Expand Down

0 comments on commit 32d8c8b

Please sign in to comment.