Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons #13

Open
PixeLInc opened this issue Apr 23, 2021 · 1 comment
Open

Buttons #13

PixeLInc opened this issue Apr 23, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@PixeLInc
Copy link
Member

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.

@PixeLInc PixeLInc added the enhancement New feature or request label Apr 23, 2021
@PixeLInc PixeLInc self-assigned this Apr 28, 2021
@PixeLInc
Copy link
Member Author

Closed by #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant