MessageButtonBuilder

Inherits: MessageComponentBuilder < Reference < Object

Description

Helper class to build message buttons.

  • Buttons must be sent inside an Action Row.
  • An Action Row can contain up to 5 buttons.
  • An Action Row containing buttons cannot also contain a select menu.

Methods

return type signature
MessageButtonBuilder with_label ( String label )
MessageButtonBuilder with_custom_id ( String custom_id )
MessageButtonBuilder with_url ( String url )
MessageButtonBuilder disabled ( bool value )

Constants

  • int LABEL_MAX_LENGTH = 80

    Maximum number of characters in a button label.

Method Descriptions