CustomEmoji

Supertype for all non-standard emojis.

See also

Inheritors

Properties

Link copied to clipboard
abstract val data: EmojiData
Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard
open val image: Asset

The image of this emoji as an Asset.

Link copied to clipboard

Whether is emoji is animated.

Link copied to clipboard

Whether this emoji can be used, may be false due to loss of Server Boosts.

Link copied to clipboard
open val isManaged: Boolean

Whether is emote is managed by Discord instead of the guild members.

Link copied to clipboard
abstract val kord: Kord

The kord instance that created this object.

Link copied to clipboard
open override val mention: String

Either the unicode representation of the emoji if it's a StandardEmoji or the mention string if it's a CustomEmoji.

Link copied to clipboard
open override val name: String?

The name of this emoji.

Link copied to clipboard

Whether this emoji needs to be wrapped in colons.

Link copied to clipboard
abstract val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard
open val user: UserBehavior?

The User who created the emote, if present.

Link copied to clipboard
open val userId: Snowflake?

The id of the User who created the emote, if present.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard
abstract suspend fun delete()

Requests to delete this emoji.

Link copied to clipboard
open suspend fun getUser(): User?

Requests to get the creator of the emoji as a User, returns null if the User isn't present or userId is null.

Link copied to clipboard
abstract override fun withStrategy(strategy: EntitySupplyStrategy<*>): CustomEmoji

Returns a copy of this class with a new supplier provided by the strategy.