mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): hopefully fix NRE in reaction listener
This commit is contained in:
parent
d5adcaf76c
commit
b01ffa8161
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ public class ReactionAdded: IEventHandler<MessageReactionAddEvent>
|
|||
// Ignore reactions from bots (we can't DM them anyway)
|
||||
// note: this used to get from cache since this event does not contain Member in DMs
|
||||
// but we aren't able to get DMs from bots anyway, so it's not really needed
|
||||
if (evt.GuildId != null && evt.Member.User.Bot) return;
|
||||
if (evt.GuildId != null && (evt.Member?.User?.Bot ?? false)) return;
|
||||
|
||||
var channel = await _cache.GetChannel(evt.ChannelId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue