Class: Discordrb::Events::ComponentEvent
- Inherits:
-
InteractionCreateEvent
- Object
- Event
- InteractionCreateEvent
- Discordrb::Events::ComponentEvent
- Defined in:
- lib/discordrb/events/interactions.rb
Overview
An event for when a user interacts with a component.
Direct Known Subclasses
ButtonEvent, ChannelSelectEvent, MentionableSelectEvent, ModalSubmitEvent, RoleSelectEvent, StringSelectEvent, UserSelectEvent
Instance Attribute Summary collapse
-
#custom_id ⇒ String
readonly
User provided data for this button.
-
#message ⇒ Interactions::Message?
readonly
The message the button originates from.
Attributes inherited from InteractionCreateEvent
#channel, #channel_id, #interaction, #server, #server_id, #type, #user
Attributes inherited from Event
Method Summary
Methods inherited from InteractionCreateEvent
#defer, #defer_update, #delete_message, #delete_response, #edit_message, #edit_response, #get_component, #respond, #send_message, #show_modal, #update_message
Instance Attribute Details
#custom_id ⇒ String (readonly)
Returns User provided data for this button.
365 366 367 |
# File 'lib/discordrb/events/interactions.rb', line 365 def custom_id @custom_id end |
#message ⇒ Interactions::Message? (readonly)
Returns The message the button originates from.
368 369 370 |
# File 'lib/discordrb/events/interactions.rb', line 368 def @message end |