Class: Discordrb::Components::Separator
- Inherits:
-
Object
- Object
- Discordrb::Components::Separator
- Defined in:
- lib/discordrb/data/component.rb
Overview
A component that adds vertical padding and visual division.
Instance Attribute Summary collapse
-
#divider ⇒ true, false
(also: #divider?)
readonly
Whether or not a visual divider should be displayed.
-
#id ⇒ Integer
readonly
The numeric identifier of the separator.
-
#spacing ⇒ Integer
readonly
The size of the separator's padding.
Instance Attribute Details
#divider ⇒ true, false (readonly) Also known as: divider?
Returns whether or not a visual divider should be displayed.
360 361 362 |
# File 'lib/discordrb/data/component.rb', line 360 def divider @divider end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the separator.
357 358 359 |
# File 'lib/discordrb/data/component.rb', line 357 def id @id end |
#spacing ⇒ Integer (readonly)
Returns the size of the separator's padding. 1 for little padding,
and 2 for big padding.
365 366 367 |
# File 'lib/discordrb/data/component.rb', line 365 def spacing @spacing end |