Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private async Task ReactionMadeAsync(Cacheable<IUserMessage, ulong> messageIn, Cacheable<IMessageChannel, ulong> channelIn , SocketReaction reaction)
- {
- //first, we want to see what the emoji is. If it is not a punisher, we are not concerned.
- string reactionName = reaction.Emote.Name.ToString();
- if (reactionName != "Punisher")
- {
- Console.WriteLine("not punisher emoji, break out");
- return;
- }
- int punisherCounter = 0;
- ulong messageId = reaction.MessageId;
- IUserMessage messageContent = (IUserMessage)messageIn.GetOrDownloadAsync();
- string messageAuthor = messageContent.Author.ToString(); //This doesn't seem to work
- Console.WriteLine("An emoji has been made on a message by " + messageAuthor + " with " + reactionName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement