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

#embed ⇒ Embed (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

#inline ⇒ true, 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

#name ⇒ String (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

#value ⇒ String (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