Class: Discordrb::Components::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/component.rb

Overview

A parent component for interactive modal components.

Instance Attribute Summary collapse

Instance Attribute Details

#componentComponent (readonly)

Returns the interactive component of the label.

Returns:

  • (Component)

    the interactive component of the label.



486
487
488
# File 'lib/discordrb/data/component.rb', line 486

def component
  @component
end

#idInteger (readonly)

Returns the numeric identifier of the label.

Returns:

  • (Integer)

    the numeric identifier of the label.



483
484
485
# File 'lib/discordrb/data/component.rb', line 483

def id
  @id
end