• Resolves a custom emoji from a string, such as a name or a mention.

    Parameters

    • text: string

      Text to resolve.

    • emojis: Collection<string, Emoji>

      Collection of emojis to find in.

    • caseSensitive: boolean = false

      Makes finding by name case sensitive.

    • wholeWord: boolean = false

      Makes finding by name match full word only.

    Returns Emoji | null