Class: Discordrb::Components::CheckboxGroup

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

Overview

A grouping of checkboxes in a modal.

Instance Attribute Summary collapse

Instance Attribute Details

#custom_idString (readonly)

Returns the developer-defined identifier of the checkbox group.

Returns:

  • (String)

    the developer-defined identifier of the checkbox group.



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

def custom_id
  @custom_id
end

#idInteger (readonly)

Returns the numeric identifier of the checkbox group.

Returns:

  • (Integer)

    the numeric identifier of the checkbox group.



539
540
541
# File 'lib/discordrb/data/component.rb', line 539

def id
  @id
end

#valuesArray<String> (readonly)

Returns the values of the selected checkbox buttons.

Returns:

  • (Array<String>)

    the values of the selected checkbox buttons.



542
543
544
# File 'lib/discordrb/data/component.rb', line 542

def values
  @values
end