class Discordrb::EmbedField

An Embed field for the embed object

Attributes

embed[R]

@return [Embed] the embed object this is based on.

inline[R]

@return [true, false] whether this field is inline.

name[R]

@return [String] the field’s name.

value[R]

@return [String] the field’s value.

Public Class Methods

new(data, embed) click to toggle source

@!visibility private

# File lib/discordrb/data/embed.rb, line 243
def initialize(data, embed)
  @embed = embed

  @name = data['name']
  @value = data['value']
  @inline = data['inline']
end