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.



1527
1528
1529
# File 'lib/discordrb/data.rb', line 1527

def embed
  @embed
end

#nameString (readonly)

Returns the author's name.

Returns:

  • (String)

    the author's name.



1530
1531
1532
# File 'lib/discordrb/data.rb', line 1530

def name
  @name
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



1533
1534
1535
# File 'lib/discordrb/data.rb', line 1533

def url
  @url
end