Class: Discordrb::Events::ComponentEvent

Inherits:
InteractionCreateEvent show all
Defined in:
lib/discordrb/events/interactions.rb

Overview

An event for when a user interacts with a component.

Instance Attribute Summary collapse

Attributes inherited from InteractionCreateEvent

#channel, #channel_id, #interaction, #server, #server_id, #type, #user

Attributes inherited from Event

#bot

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_idString (readonly)

Returns User provided data for this button.

Returns:

  • (String)

    User provided data for this button.



365
366
367
# File 'lib/discordrb/events/interactions.rb', line 365

def custom_id
  @custom_id
end

#messageInteractions::Message? (readonly)

Returns The message the button originates from.

Returns:



368
369
370
# File 'lib/discordrb/events/interactions.rb', line 368

def message
  @message
end