Class: Discordrb::EmbedAuthor
- Inherits:
-
Object
- Object
- Discordrb::EmbedAuthor
- Defined in:
- lib/discordrb/data.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.
2275 2276 2277 |
# File 'lib/discordrb/data.rb', line 2275 def @embed end |
#icon_url ⇒ String? (readonly)
Returns the icon of the author, or nil
if there is no icon.
2284 2285 2286 |
# File 'lib/discordrb/data.rb', line 2284 def icon_url @icon_url end |
#name ⇒ String (readonly)
Returns the author's name.
2278 2279 2280 |
# File 'lib/discordrb/data.rb', line 2278 def name @name end |
#proxy_icon_url ⇒ String? (readonly)
Returns the Discord proxy URL, or nil
if there is no icon_url
.
2287 2288 2289 |
# File 'lib/discordrb/data.rb', line 2287 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.
2281 2282 2283 |
# File 'lib/discordrb/data.rb', line 2281 def url @url end |