fix interactions in DMs

This commit is contained in:
spiral 2021-07-28 01:55:06 -04:00
parent a8727f474b
commit def39b7bc5
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
3 changed files with 5 additions and 4 deletions

View file

@ -80,7 +80,7 @@ namespace PluralKit.Bot
MessageUpdateEvent e => e.Author.HasValue ? e.Author.Value.Id : null,
MessageReactionAddEvent e => e.UserId,
MessageReactionRemoveEvent e => e.UserId,
InteractionCreateEvent e => e.Member.User.Id,
InteractionCreateEvent e => e.User?.Id ?? e.Member.User.Id,
_ => null,
};