Interface IDiscordEmoji
Represents a discord emoji structure API model. Docs: https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure
Namespace: Color_Chan.Discord.Core.Common.Models
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordEmoji
Properties
| Improve this Doc View SourceId
Emoji id.
Declaration
ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
IsAnimated
Whether this emoji is animated.
Declaration
bool? IsAnimated { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
IsAvailable
Whether this emoji can be used, may be false due to loss of Server Boosts.
Declaration
bool? IsAvailable { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
IsManaged
Whether this emoji is managed.
Declaration
bool? IsManaged { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Name
Emoji name
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
RequireColons
Whether this emoji must be wrapped in colons.
Declaration
bool? RequireColons { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
RoleIds
Roles allowed to use this emoji
Declaration
IEnumerable<ulong> RoleIds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.UInt64> |
User
User that created this emoji
Declaration
IDiscordUser User { get; set; }
Property Value
Type | Description |
---|---|
IDiscordUser |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
DiscordEmojiData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmojiData | The converted DiscordEmojiData. |