Class: RubyCord::Interaction::Component

Inherits:
RubyCord::Interaction show all
Includes:
ModalResponder, SourceResponder, UpdateResponder
Defined in:
lib/rubycord/interaction/components.rb

Direct Known Subclasses

Button, SelectMenu

Instance Attribute Summary collapse

Attributes inherited from RubyCord::Interaction

#app_permissions, #application_id, #guild_locale, #id, #locale, #token, #type, #user, #version

Method Summary

Methods included from ModalResponder

#show_modal

Methods included from UpdateResponder

#defer_update, #edit

Methods included from SourceResponder

#defer_source, #post

Methods inherited from RubyCord::Interaction

#channel, #delete_original_message, #edit_original_message, #guild, #inspect, #post

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#custom_idString (readonly)

Returns The content of the response.

Returns:

  • (String)

    The content of the response.



16
17
18
# File 'lib/rubycord/interaction/components.rb', line 16

def custom_id
  @custom_id
end

#messageRubyCord::Message (readonly)

Returns The target message.

Returns:



18
19
20
# File 'lib/rubycord/interaction/components.rb', line 18

def message
  @message
end