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.



511
512
513
# File 'lib/discordrb/data/component.rb', line 511

def component
  @component
end

#idInteger (readonly)

Returns the numeric identifier of the label.

Returns:

  • (Integer)

    the numeric identifier of the label.



508
509
510
# File 'lib/discordrb/data/component.rb', line 508

def id
  @id
end