Show / Hide Table of Contents

Class Author

An author field for an Embed. This is shown at the top of embeds. See the Embed Author structure for more information.

Inheritance
System.Object
Author
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dishooks.Embeds
Assembly: cs.temp.dll.dll
Syntax
public class Author

Constructors

Author(String, Attachment, String)

Create an author.

Declaration
public Author(string name, Attachment attachment, string url = null)
Parameters
Type Name Description
System.String name

The name of the author.

Attachment attachment

An Attachment to use as avatar for the author.

System.String url

An optional link to visit when clicking the author.

Author(String, String, String)

Create an author.

Declaration
public Author(string name, string iconUrl = null, string url = null)
Parameters
Type Name Description
System.String name

The name of the author.

System.String iconUrl

An optional avatar for the author.

System.String url

An optional link to visit when clicking the author.

Properties

IconUrl

An (optional) for the author's avatar icon, displayed to the left of the author's name.

Declaration
public string IconUrl { get; set; }
Property Value
Type Description
System.String

Name

The name of the author.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

ProxyIconUrl

A proxied url of the image. This can not be set by the user, and will only be displayed in DiscordMessage objects.

Declaration
public string ProxyIconUrl { get; }
Property Value
Type Description
System.String

Url

An (optional) URL opened in a new tab when the user clicks on the author's name.

Declaration
public string Url { get; set; }
Property Value
Type Description
System.String
In This Article
Back to top Generated by DocFX