Class: Discordrb::EmbedField

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

Overview

An Embed field for the embed object

Instance Attribute Summary collapse

Instance Attribute Details

#embedEmbed (readonly)

Returns the embed object this is based on.

Returns:

  • (Embed)

    the embed object this is based on.


2043
2044
2045
# File 'lib/discordrb/data.rb', line 2043

def embed
  @embed
end

#inlinetrue, false (readonly)

Returns whether this field is inline.

Returns:

  • (true, false)

    whether this field is inline.


2052
2053
2054
# File 'lib/discordrb/data.rb', line 2052

def inline
  @inline
end

#nameString (readonly)

Returns the field's name.

Returns:

  • (String)

    the field's name.


2046
2047
2048
# File 'lib/discordrb/data.rb', line 2046

def name
  @name
end

#valueString (readonly)

Returns the field's value.

Returns:

  • (String)

    the field's value.


2049
2050
2051
# File 'lib/discordrb/data.rb', line 2049

def value
  @value
end