Class: Rubycord::EmbedAuthor
- Inherits:
-
Object
- Object
- Rubycord::EmbedAuthor
- Defined in:
- lib/rubycord/data/embed.rb
Overview
An Embed author for the embed object
Instance Attribute Summary collapse
-
#embed ⇒ Embed
readonly
The embed object this is based on.
-
#icon_url ⇒ String?
readonly
The icon of the author, or
nil
if there is no icon. -
#name ⇒ String
readonly
The author's name.
-
#proxy_icon_url ⇒ String?
readonly
The Discord proxy URL, or
nil
if there is noicon_url
. -
#url ⇒ String?
readonly
The URL of the author's website, or
nil
if there is no URL.
Instance Attribute Details
#embed ⇒ Embed (readonly)
Returns the embed object this is based on.
201 202 203 |
# File 'lib/rubycord/data/embed.rb', line 201 def @embed end |
#icon_url ⇒ String? (readonly)
Returns the icon of the author, or nil
if there is no icon.
210 211 212 |
# File 'lib/rubycord/data/embed.rb', line 210 def icon_url @icon_url end |
#name ⇒ String (readonly)
Returns the author's name.
204 205 206 |
# File 'lib/rubycord/data/embed.rb', line 204 def name @name end |
#proxy_icon_url ⇒ String? (readonly)
Returns the Discord proxy URL, or nil
if there is no icon_url
.
213 214 215 |
# File 'lib/rubycord/data/embed.rb', line 213 def proxy_icon_url @proxy_icon_url end |
#url ⇒ String? (readonly)
Returns the URL of the author's website, or nil
if there is no URL.
207 208 209 |
# File 'lib/rubycord/data/embed.rb', line 207 def url @url end |