Skip to content

Commit

Permalink
feat(constants): Updated ComponentButton (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbrettnich authored Jun 9, 2024
1 parent bd8d384 commit 13e8c8b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,11 +899,16 @@ export interface ComponentButton {
/** The type of component to use. */
type: ComponentType.BUTTON;
/** The style of button to show. */
style: ButtonStyle.PRIMARY | ButtonStyle.SECONDARY | ButtonStyle.SUCCESS | ButtonStyle.DESTRUCTIVE;
style:
| ButtonStyle.PRIMARY
| ButtonStyle.SECONDARY
| ButtonStyle.SUCCESS
| ButtonStyle.DESTRUCTIVE
| ButtonStyle.DANGER;
/** The identifier for this button. */
custom_id: string;
/** The label of the button. */
label: string;
label?: string;
/** The emoji to show inside the button. */
emoji?: PartialEmoji;
/** Whether this button will show as disabled. */
Expand Down

0 comments on commit 13e8c8b

Please sign in to comment.