Class: Discordrb::EmbedAuthor

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data.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.


2015
2016
2017
# File 'lib/discordrb/data.rb', line 2015

def embed
  @embed
end

#icon_urlString? (readonly)

Returns the icon of the author, if present.

Returns:

  • (String, nil)

    the icon of the author, if present


2024
2025
2026
# File 'lib/discordrb/data.rb', line 2024

def icon_url
  @icon_url
end

#nameString (readonly)

Returns the author's name.

Returns:

  • (String)

    the author's name.


2018
2019
2020
# File 'lib/discordrb/data.rb', line 2018

def name
  @name
end

#proxy_icon_urlString? (readonly)

Returns the discord proxy URL, if an icon_url was present.

Returns:

  • (String, nil)

    the discord proxy URL, if an icon_url was present


2027
2028
2029
# File 'lib/discordrb/data.rb', line 2027

def proxy_icon_url
  @proxy_icon_url
end

#urlString? (readonly)

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

Returns:

  • (String, nil)

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


2021
2022
2023
# File 'lib/discordrb/data.rb', line 2021

def url
  @url
end