Skip to content

Commit

Permalink
fix(Interaction): add missing types and fix docs lists (#5762)
Browse files Browse the repository at this point in the history
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
  • Loading branch information
ImRodry and SpaceEEC committed Jun 5, 2021
1 parent 2901fd5 commit 1d57754
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/util/Constants.js
Expand Up @@ -826,19 +826,19 @@ exports.InteractionResponseTypes = createEnum([

/**
* The type of a message component
* ACTION_ROW
* BUTTON
* * ACTION_ROW
* * BUTTON
* @typedef {string} MessageComponentType
*/
exports.MessageComponentTypes = createEnum([null, 'ACTION_ROW', 'BUTTON']);

/**
* The style of a message button
* PRIMARY
* SECONDARY
* SUCCESS
* DANGER
* LINK
* * PRIMARY
* * SECONDARY
* * SUCCESS
* * DANGER
* * LINK
* @typedef {string} MessageButtonStyle
*/
exports.MessageButtonStyles = createEnum([null, 'PRIMARY', 'SECONDARY', 'SUCCESS', 'DANGER', 'LINK']);
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -1328,6 +1328,7 @@ declare module 'discord.js' {
}

export class MessageComponentInteraction extends Interaction {
public componentType: MessageComponentType;
public customID: string;
public deferred: boolean;
public message: Message | RawMessage;
Expand Down

0 comments on commit 1d57754

Please sign in to comment.