Skip to main content

Register a command

Register a button handler

If you only need the visual button definition for a message payload, use Button.*:

Send classic V1 components

Notes

  • Classic message components are row-based because that is how Discord models V1 component payloads.
  • The same Button.* helpers also work inside Components V2 accessory flows.
  • Use defineButton(...) or Button.of(...) when the component also needs an execute handler.
Last modified on June 13, 2026