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
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, #respond, #send_message, #update_message
Instance Attribute Details
#custom_id ⇒ String (readonly)
Returns User provided data for this button.
315 316 317 |
# File 'lib/discordrb/events/interactions.rb', line 315 def custom_id @custom_id end |
#message ⇒ Interactions::Message (readonly)
Returns The message the button originates from.
318 319 320 |
# File 'lib/discordrb/events/interactions.rb', line 318 def @message end |