Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseMessageComponent
    • MessageButton

Index

Constructors

constructor

  • Parameters

    Returns MessageButton

Properties

customId

customId: string

disabled

disabled: boolean

emoji

emoji: APIPartialEmoji

label

label: string

style

style: "PRIMARY" | "SECONDARY" | "SUCCESS" | "DANGER" | "LINK"

type

type: "BUTTON"

url

url: string

Methods

setCustomId

  • Parameters

    • customId: string

    Returns MessageButton

setDisabled

  • Parameters

    • Optional disabled: boolean

    Returns MessageButton

setEmoji

  • Parameters

    • emoji: EmojiIdentifierResolvable

    Returns MessageButton

setLabel

  • Parameters

    • label: string

    Returns MessageButton

setStyle

  • Parameters

    • style: MessageButtonStyleResolvable

    Returns MessageButton

setURL

  • Parameters

    • url: string

    Returns MessageButton

toJSON

  • toJSON(): unknown
  • Returns unknown

Static Private resolveStyle

  • resolveStyle(style: MessageButtonStyleResolvable): "PRIMARY" | "SECONDARY" | "SUCCESS" | "DANGER" | "LINK"
  • Parameters

    • style: MessageButtonStyleResolvable

    Returns "PRIMARY" | "SECONDARY" | "SUCCESS" | "DANGER" | "LINK"

Generated using TypeDoc