Class: Discordrb::Components::Separator

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

Overview

A component that adds vertical padding and visual division.

Instance Attribute Summary collapse

Instance Attribute Details

#dividertrue, false (readonly) Also known as: divider?

Returns whether or not a visual divider should be displayed.

Returns:

  • (true, false)

    whether or not a visual divider should be displayed.



360
361
362
# File 'lib/discordrb/data/component.rb', line 360

def divider
  @divider
end

#idInteger (readonly)

Returns the numeric identifier of the separator.

Returns:

  • (Integer)

    the numeric identifier of the separator.



357
358
359
# File 'lib/discordrb/data/component.rb', line 357

def id
  @id
end

#spacingInteger (readonly)

Returns the size of the separator's padding. 1 for little padding, and 2 for big padding.

Returns:

  • (Integer)

    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