class Discordrb::EmbedAuthor

An Embed author for the embed object

Attributes

embed[R]

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

icon_url[R]

@return [String, nil] the icon of the author, or `nil` if there is no icon.

name[R]

@return [String] the author's name.

proxy_icon_url[R]

@return [String, nil] the Discord proxy URL, or `nil` if there is no `icon_url`.

url[R]

@return [String, nil] the URL of the author's website, or `nil` if there is no URL.

Public Class Methods

new(data, embed) click to toggle source

@!visibility private

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

  @name = data['name']
  @url = data['url']
  @icon_url = data['icon_url']
  @proxy_icon_url = data['proxy_icon_url']
end