asUnicodeEmoji

Converts the provided Emoji into a JDA UnicodeEmoji.

I highly recommend putting your emojis in a class that is loaded only when necessary, avoiding any unnecessary startup delay. You can do so by using a static inner class, for example:


static class Emojis {
    private static final UnicodeEmoji WASTEBASKET = EmojiUtils.asUnicodeEmoji(net.fellbaum.jemoji.Emojis.WASTEBASKET);
}

Return

Parameters

emoji