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_id ⇒ String (readonly)

Returns the developer-defined identifier of the radio group.

Returns:

  • (String) —

    the developer-defined identifier of the radio group.



550
551
552
# File 'lib/discordrb/data/component.rb', line 550

def custom_id
  @custom_id
end

#id ⇒ Integer (readonly)

Returns the numeric identifier of the radio group.

Returns:

  • (Integer) —

    the numeric identifier of the radio group.



544
545
546
# File 'lib/discordrb/data/component.rb', line 544

def id
  @id
end

#value ⇒ String? (readonly)

Returns whether or not a radio button was selected.

Returns:

  • (String, nil) —

    whether or not a radio button was selected.



547
548
549
# File 'lib/discordrb/data/component.rb', line 547

def value
  @value
end