You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

emoji-self.cs 619 B

1234567891011121314151617
  1. // capture the message you're sending in a variable
  2. var msg = await channel.SendMessageAsync("This will have reactions added.");
  3. // standard Unicode emojis
  4. Emoji emoji = new Emoji("👍");
  5. // or
  6. // Emoji emoji = new Emoji("\uD83D\uDC4D");
  7. // custom guild emotes
  8. Emote emote = Emote.Parse("<:dotnet:232902710280716288>");
  9. // using Emote.TryParse may be safer in regards to errors being thrown;
  10. // please note that the method does not verify if the emote exists,
  11. // it simply creates the Emote object for you.
  12. // add the reaction to the message
  13. await msg.AddReactionAsync(emoji);
  14. await msg.AddReactionAsync(emote);