Class CustomEmoji
- Namespace
- NetCord
- Assembly
- NetCord.dll
Represents a custom (user-uploaded) emoji.
public abstract class CustomEmoji : Emoji, IJsonModel<JsonEmoji>, ISpanFormattable, IFormattable
- Inheritance
-
CustomEmoji
- Implements
- Derived
- Inherited Members
Constructors
CustomEmoji(JsonEmoji, RestClient)
public CustomEmoji(JsonEmoji jsonModel, RestClient client)
Parameters
jsonModelJsonEmojiclientRestClient
Properties
Available
Whether the emoji is available for use. Can be false if server boosts are lost.
public bool? Available { get; }
Property Value
- bool?
Creator
The user that uploaded the emoji.
public User? Creator { get; }
Property Value
Id
The emoji's unique ID.
public ulong Id { get; }
Property Value
Managed
Whether the emoji is managed by an application.
public bool? Managed { get; }
Property Value
- bool?
Remarks
Managed emoji can only be created by apps with the ManagedEmoji flag set.
RequireColons
Whether this emoji must be wrapped in colons.
public bool? RequireColons { get; }
Property Value
- bool?
Methods
GetImageUrl(ImageFormat)
Returns an image representation of the emoji.
public ImageUrl GetImageUrl(ImageFormat format)
Parameters
formatImageFormat
Returns
ToString()
public override string ToString()
Returns
ToString(string?, IFormatProvider?)
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
formatstringformatProviderIFormatProvider
Returns
TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
Parameters
destinationSpan<char>charsWrittenintformatReadOnlySpan<char>providerIFormatProvider