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.



2325
2326
2327
# File 'lib/discordrb/data.rb', line 2325

def embed
  @embed
end

#inlinetrue, false (readonly)

Returns whether this field is inline.

Returns:

  • (true, false)

    whether this field is inline.



2334
2335
2336
# File 'lib/discordrb/data.rb', line 2334

def inline
  @inline
end

#nameString (readonly)

Returns the field's name.

Returns:

  • (String)

    the field's name.



2328
2329
2330
# File 'lib/discordrb/data.rb', line 2328

def name
  @name
end

#valueString (readonly)

Returns the field's value.

Returns:

  • (String)

    the field's value.



2331
2332
2333
# File 'lib/discordrb/data.rb', line 2331

def value
  @value
end