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.
329 330 331 |
# File 'lib/discordrb/events/interactions.rb', line 329 def custom_id @custom_id end |
#message ⇒ Interactions::Message? (readonly)
Returns The message the button originates from.
332 333 334 |
# File 'lib/discordrb/events/interactions.rb', line 332 def @message end |