MessageButton

Inherits: MessageInteractiveComponent < MessageComponent < Reference < Object

Description

Button message component.

custom_id is empty when url is set, and the button does not fire an interaction event if it is the case.

Properties

type name
bool disabled
int style
String label
Emoji emoji
String url

Constants

  • Dictionary Styles

    • PRIMARY = 1

    • SECONDARY = 2

    • SUCCESS = 3

    • DANGER = 4

    • LINK = 5

    Button styles

Property Descriptions

  • bool disabled

    Whether the button is disabled.


  • int style

    Button style.


  • String label

    The text that appears on the button.


  • Emoji emoji

    Button emoji if present.


  • String url

    Button URL, appliable when style is equal to Styles.LINK.