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.



1626
1627
1628
# File 'lib/discordrb/data.rb', line 1626

def embed
  @embed
end

#nameString (readonly)

Returns the author's name.

Returns:

  • (String)

    the author's name.



1629
1630
1631
# File 'lib/discordrb/data.rb', line 1629

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



1632
1633
1634
# File 'lib/discordrb/data.rb', line 1632

def url
  @url
end