Class: Discordrb::EmbedAuthor

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

Overview

An Embed author 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.



210
211
212
# File 'lib/discordrb/data/embed.rb', line 210

def embed
  @embed
end

#icon_urlString? (readonly)

Returns the icon of the author, or nil if there is no icon.

Returns:

  • (String, nil)

    the icon of the author, or nil if there is no icon.



219
220
221
# File 'lib/discordrb/data/embed.rb', line 219

def icon_url
  @icon_url
end

#nameString (readonly)

Returns the author's name.

Returns:

  • (String)

    the author's name.



213
214
215
# File 'lib/discordrb/data/embed.rb', line 213

def name
  @name
end

#proxy_icon_urlString? (readonly)

Returns the Discord proxy URL, or nil if there is no icon_url.

Returns:

  • (String, nil)

    the Discord proxy URL, or nil if there is no icon_url.



222
223
224
# File 'lib/discordrb/data/embed.rb', line 222

def proxy_icon_url
  @proxy_icon_url
end

#urlString? (readonly)

Returns the URL of the author's website, or nil if there is no URL.

Returns:

  • (String, nil)

    the URL of the author's website, or nil if there is no URL.



216
217
218
# File 'lib/discordrb/data/embed.rb', line 216

def url
  @url
end