Class: Discorb::MessageComponentInteraction Abstract

Inherits:
Interaction show all
Includes:
Interaction::SourceResponse, Interaction::UpdateResponse
Defined in:
lib/discorb/interaction.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, #id, #member, #token, #type, #user, #version

Method Summary

Methods included from Interaction::UpdateResponse

#defer_update, #edit

Methods included from Interaction::SourceResponse

#defer_source, #post

Methods inherited from Interaction

#channel, #guild, #inspect, #target

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#custom_id -> String (readonly)

Returns The content of the response.

Returns:

  • (String)

    The content of the response.



462
463
464
# File 'lib/discorb/interaction.rb', line 462

def custom_id
  @custom_id
end