Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
parse_emoji
accept animated emojis (#952)
Previously, `parse_emoji` only returned true when the emoji was static and animated emojis passed to the function returned `None` since they include an extra character (<a:) to denote whether the emoji is animated. Since we can tell whether an emoji is animated through the mention, support to the parse_emoji function has been added to detect if an emoji is animated or not. The `EmojiIdentifier` struct is altered to include the animated bool to reflect the change.
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters