Class: RubyCord::Interaction::Button

Inherits:
Component show all
Defined in:
lib/rubycord/interaction/component/button.rb

Instance Attribute Summary collapse

Attributes inherited from Component

#message

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 custom id of the button.

Returns:

  • (String)

    The custom id of the button.



10
11
12
# File 'lib/rubycord/interaction/component/button.rb', line 10

def custom_id
  @custom_id
end