-
First time using buttons, so sorry if the question is stupid. Anyway, I have multiple buttons in a message and want to know if there's a way to differentiate them. I have 3 buttons, and when a user clicks one, I'd like a message that says "user has clicked x button." Specifically, I'm wondering if there's a way to get the custom ID of a button, it's label, or some other property that distinguishes which button was clicked. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Buttons feature a |
Beta Was this translation helpful? Give feedback.
Buttons feature a
callback
function that you can define in the class to handle callbacks from buttons.Buttons also have the
custom_id
attribute.Docs here.