Class: Discorb::MessageComponentInteraction Abstract

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

Overview

This class is abstract.

Represents a message component interaction.

Direct Known Subclasses

Button, SelectMenu

Defined Under Namespace

Classes: Button, SelectMenu

Instance Attribute Summary collapse

Attributes inherited from Interaction

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

Method Summary

Methods included from Interaction::ModalResponder

#show_modal

Methods included from Interaction::UpdateResponder

#defer_update, #edit

Methods included from Interaction::SourceResponder

#defer_source, #post

Methods inherited from Interaction

#channel, #guild, #inspect, #target

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#custom_id -> String (readonly)

Returns The content of the response.

Returns:

  • (String)

    The content of the response.



14
15
16
# File 'lib/discorb/interaction/components.rb', line 14

def custom_id
  @custom_id
end

#message -> Discorb::Message (readonly)

Returns The target message.

Returns:



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

def message
  @message
end