mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Interaction): add missing types and fix docs lists (#5762)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -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']);
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user