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

Add support for button interactions #62

Merged
merged 1 commit into from
Jun 12, 2021

Conversation

mattantonelli
Copy link
Contributor

Summary

Adds support for button interactions.

Added

  • Exposes Interaction#data which provides the custom_id of the clicked button.
  • Adds Interaction#button, a convenience method for retrieving the selected button by its custom_id. This is useful for obtaining the label of the clicked button.
  • Adds Interaction::COMPONENT_TYPES

Changed

  • Adds the new button type to Interaction::TYPES

Exposes the "data" object which provides the custom_id of the clicked
button. Adds a convenience method for retrieving the selected button by
its custom_id, useful for obtaining the label of the clicked button.
Adds new buttony TYPES.
@swarley swarley merged commit 8a61dc7 into shardlab:slash_commands Jun 12, 2021
@swarley
Copy link
Member

swarley commented Jun 12, 2021

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants