You need to use the SocketClient.ReactionAdded event.
Here's a basic implementation of the ReactionAdded event (didn't test, might be incorrect):
public class Bot {
public DiscordSocketClient client;
public Bot() {
//Initialize your client here...
client = new DiscordSocketClient(/* ... */);
client.ReactionAdded += ReactionAdded_Event;
}
public void ReactionAdded_Event(Cacheable<IUserMessage, UInt64> message, ISocketMessageChannel channel, SocketReaction reaction)
{
//Check if the message is in the right channel, if it's the emoji you want, etc...
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…