Ignore bot reactions

This commit is contained in:
Ske 2020-06-18 17:49:43 +02:00
parent 68eeb858ec
commit 8df42f7d92

View File

@ -30,6 +30,9 @@ namespace PluralKit.Bot
// Only proxies in guild text channels // Only proxies in guild text channels
if (evt.Channel.Type != ChannelType.Text) return; if (evt.Channel.Type != ChannelType.Text) return;
// Ignore reactions from bots (we can't DM them anyway)
if (evt.User.IsBot) return;
FullMessage msg; FullMessage msg;
switch (evt.Emoji.Name) switch (evt.Emoji.Name)
{ {