Skip to content

arguments passed to Message::react #1854

Answered by arqunis
Bunch-of-cells asked this question in Q&A
Discussion options

You must be logged in to vote

The job of ReactionType is to handle two kinds of emoji types:

  • Unicode -- these are emojis that exist within the Unicode standard, which as a result, are represented as characters. When the Discord client encounters these characters, they're swapped with the emoji image they represent. To be specific, the characters are replaced with Twitter's https://twemoji.twitter.com/.
  • Custom -- these are emojis unique to a guild, represented in a message in the format of <a?:id:name> (the ? means that "a" may be omitted). Custom emojis are just regular static (jpg, png) or animated (gif) images.

Message::react uses the Into trait to allow users to pass emoji data into the function without having to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bunch-of-cells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants