Class DiscordEmbedAuthor
Represents a discord Embed Author Structure API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure
Inheritance
System.Object
DiscordEmbedAuthor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Embed
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordEmbedAuthor : IDiscordEmbedAuthor, IEquatable<DiscordEmbedAuthor>
Constructors
| Improve this Doc View SourceDiscordEmbedAuthor()
Initializes a new DiscordEmbedAuthor
Declaration
public DiscordEmbedAuthor()
DiscordEmbedAuthor(DiscordEmbedAuthorData)
Initializes a new DiscordEmbedAuthor
Declaration
public DiscordEmbedAuthor(DiscordEmbedAuthorData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordEmbedAuthorData | data | The data needed to create the DiscordEmbedAuthor. |
Properties
| Improve this Doc View SourceIconUrl
Url of author icon (only supports http(s) and attachments).
Declaration
public string IconUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Name of author.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ProxyIconUrl
A proxied url of author icon.
Declaration
public string ProxyIconUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Url
Url of author.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
public DiscordEmbedAuthorData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmbedAuthorData | The converted DiscordEmbedAuthorData. |
Implements
System.IEquatable<T>