Class: Discordrb::Components::SelectMenu
- Inherits:
-
Object
- Object
- Discordrb::Components::SelectMenu
- Defined in:
- lib/discordrb/data/component.rb
Overview
An interactable select menu component.
Defined Under Namespace
Classes: Option
Instance Attribute Summary collapse
-
#custom_id ⇒ String
readonly
The custom ID used to identify the select menu.
-
#id ⇒ Integer
readonly
The numeric identifier of the select menu.
-
#max_values ⇒ Integer?
readonly
The minimum amount of values that be selected.
-
#min_values ⇒ Integer?
readonly
The maximum amount of values that can be selected.
-
#options ⇒ Array<Option>
readonly
The options in the select menu, or the selected options.
-
#placeholder ⇒ String?
readonly
The default placeholder text shown on the select menu.
-
#values ⇒ Array<String>
readonly
The submitted values from the modal.
Instance Attribute Details
#custom_id ⇒ String (readonly)
Returns the custom ID used to identify the select menu.
183 184 185 |
# File 'lib/discordrb/data/component.rb', line 183 def custom_id @custom_id end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the select menu.
177 178 179 |
# File 'lib/discordrb/data/component.rb', line 177 def id @id end |
#max_values ⇒ Integer? (readonly)
Returns the minimum amount of values that be selected.
186 187 188 |
# File 'lib/discordrb/data/component.rb', line 186 def max_values @max_values end |
#min_values ⇒ Integer? (readonly)
Returns the maximum amount of values that can be selected.
189 190 191 |
# File 'lib/discordrb/data/component.rb', line 189 def min_values @min_values end |
#options ⇒ Array<Option> (readonly)
Returns the options in the select menu, or the selected options.
195 196 197 |
# File 'lib/discordrb/data/component.rb', line 195 def @options end |
#placeholder ⇒ String? (readonly)
Returns the default placeholder text shown on the select menu.
192 193 194 |
# File 'lib/discordrb/data/component.rb', line 192 def placeholder @placeholder end |
#values ⇒ Array<String> (readonly)
Returns the submitted values from the modal.
180 181 182 |
# File 'lib/discordrb/data/component.rb', line 180 def values @values end |