DiscordEmoji

sealed interface DiscordEmoji

A Unicode emoji supported by Discord's client.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface Diverse : DiscordEmoji

A diverse emoji that might support skin tones or hairstyles.

Link copied to clipboard

A diverse emoji which supports HairStyles.

Link copied to clipboard
Link copied to clipboard

A diverse emoji which supports SkinTones.

Link copied to clipboard
data class Generic(val unicode: String, val names: List<String>) : DiscordEmoji

A generic emoji that does not support SkinTones.

Properties

Link copied to clipboard
open val name: String

The first name for this emoji.

Link copied to clipboard
abstract val names: List<String>

List of names for this emoji.

Link copied to clipboard
abstract val unicode: String

The hex value of this emoji.

Functions

Link copied to clipboard
fun DiscordEmoji.toReaction(): ReactionEmoji.Unicode

Transforms the emoji into a ReactionEmoji.Unicode emoji.