Method: Discordrb::ColourRGB#red

Defined in:
lib/discordrb/colour_rgb.rb

#redInteger (readonly)

Returns the red part of this colour (0-255).

Returns:

  • (Integer)

    the red part of this colour (0-255).



8
9
10
# File 'lib/discordrb/colour_rgb.rb', line 8

def red
  @red
end