Skip to content

Buttons #13

@PixeLInc

Description

@PixeLInc

Buttons are fast approaching, along with other fancy new interactive user elements.

Buttons are grouped inside of a generic component group (type: 1) of interactive elements.
Example payload:

{
  "content": "buttons!",
  "components": [
    {
      "type": 1,
      "components": [
        {
          "type": 2,
          "style": 1,
          "custom_id": "test",
          "label": "Blurple Button"
        },
        {
          "type": 2,
          "style": 2,
          "custom_id": "test",
          "label": "Gray Button"
        },
        {
          "type": 2,
          "style": 3,
          "custom_id": "test",
          "label": "Green Button"
        },
        {
          "type": 2,
          "style": 4,
          "custom_id": "test",
          "label": "Red Button"
        },
        {
          "type": 2,
          "style": 5,
          "url": "https://google.com",
          "label": "Link Button"
        }
      ]
    }
  ]
}

In the future, you will be able to place other interactive elements inside of component type 1.
When working on this API, it should be pretty generic so we can support any number of possible interactive components that are added in the future.

This issue will be updated once more info comes out (which should be within the next week or so)
with links and more docs.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions