Class DiscordComponentEmoji
Represents an emoji to add to a component.
Inheritance
System.Object
DiscordComponentEmoji
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordComponentEmoji
Constructors
| Improve this Doc View SourceDiscordComponentEmoji()
Constructs a new component emoji to add to a DiscordComponent.
Declaration
public DiscordComponentEmoji()
DiscordComponentEmoji(DiscordEmoji)
Constructs a new component emoji from an existing DiscordEmoji.
Declaration
public DiscordComponentEmoji(DiscordEmoji emoji)
Parameters
Type | Name | Description |
---|---|---|
DiscordEmoji | emoji | The emoji to use. |
DiscordComponentEmoji(String)
Constructs a new component emoji from unicode.
Declaration
public DiscordComponentEmoji(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The unicode emoji to set. |
DiscordComponentEmoji(UInt64)
Constructs a new component emoji from an emoji Id.
Declaration
public DiscordComponentEmoji(ulong id)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | id | The Id of the emoji to use. Any valid emoji Id can be passed. |
Properties
| Improve this Doc View SourceId
The Id of the emoji to use.
Declaration
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
The name of the emoji to use. Ignored if Id is set.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |