withEmoji

@CheckReturnValue
fun withEmoji(aliasOrUnicode: String?): ButtonContent(source)

Creates a new button content with the provided emoji alias / emoji unicode.

Example

// Emoji alias
withEmoji(":smiley:")
// Unicode emoji
withEmoji("😃")

// Animated custom emoji
withEmoji("<a:dance:123456789123456789>")
// Not animated custom emoji
withEmoji("<:dog:123456789123456789>")

// Unicode emoji, escape codes
withEmoji("&#92;uD83D&#92;uDE03")
// Codepoint notation
withEmoji("U+1F602")