Class: Discorb::MessageComponentInteraction::Button

Inherits:
Discorb::MessageComponentInteraction show all
Defined in:
lib/discorb/interaction/components.rb

Overview

Represents a button interaction.

Instance Attribute Summary collapse

Attributes inherited from Discorb::MessageComponentInteraction

#message

Attributes inherited from Interaction

#app_permissions, #application_id, #guild_locale, #id, #locale, #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

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#custom_id -> String (readonly)

Returns The custom id of the button.

Returns:

  • (String)

    The custom id of the button.



69
70
71
# File 'lib/discorb/interaction/components.rb', line 69

def custom_id
  @custom_id
end