DiscordMessageComponentInteraction¶
Inherits: DiscordRepliableInteraction < DiscordInteraction < DiscordEntity < Reference < Object
Description¶
An event fired when a user interacts with a message component.
Properties¶
| type | name |
|---|---|
| int | message_id |
| Message | message |
| DiscordMessageComponentData | data |
Methods¶
| return type | signature |
|---|---|
| Message | fetch_message ( ) coroutine |
| InteractionModalAction | show_modal ( String custom_id, String title ) |
Property Descriptions¶
-
int message_id
Message id holding the component.
-
Message message
Reference to the message.
-
DiscordMessageComponentData data
Interaction data assossciated with the event.
Method Descriptions¶
-
Message fetch_message ( ) coroutine
Fetches the message holding the component.
-
InteractionModalAction show_modal ( String custom_id, String title )
Shows a modal popup.