diff --git a/src/util/Constants.js b/src/util/Constants.js index a97dba139..02c44ab0c 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -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']); diff --git a/typings/index.d.ts b/typings/index.d.ts index 9538a8da9..865cf1d01 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;