Table of Contents

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

jsonModel JsonEmoji
client RestClient

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

User

Id

The emoji's unique ID.

public ulong Id { get; }

Property Value

ulong

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

format ImageFormat

Returns

ImageUrl

ToString()

public override string ToString()

Returns

string

ToString(string?, IFormatProvider?)

public string ToString(string? format, IFormatProvider? formatProvider)

Parameters

format string
formatProvider IFormatProvider

Returns

string

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

destination Span<char>
charsWritten int
format ReadOnlySpan<char>
provider IFormatProvider

Returns

bool