Class: Discordrb::Components::RadioGroup

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

Overview

A grouping of radio buttons in a modal.

Instance Attribute Summary collapse

Instance Attribute Details

#custom_idString (readonly)

Returns the developer-defined identifier for the radio group.

Returns:

  • (String)

    the developer-defined identifier for the radio group.



526
527
528
# File 'lib/discordrb/data/component.rb', line 526

def custom_id
  @custom_id
end

#idInteger (readonly)

Returns the numeric identifier of the radio group.

Returns:

  • (Integer)

    the numeric identifier of the radio group.



519
520
521
# File 'lib/discordrb/data/component.rb', line 519

def id
  @id
end

#valuetrue, false (readonly) Also known as: value?

Returns whether or not a radio button was selected.

Returns:

  • (true, false)

    whether or not a radio button was selected.



522
523
524
# File 'lib/discordrb/data/component.rb', line 522

def value
  @value
end