fix interactions in DMs

This commit is contained in:
spiral
2021-07-28 01:55:06 -04:00
parent a8727f474b
commit def39b7bc5
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,
};