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

@@ -22,8 +22,8 @@ namespace PluralKit.Bot
public ulong ChannelId => _evt.ChannelId;
public ulong? MessageId => _evt.Message?.Id;
public GuildMember Member => _evt.Member;
public User User => _evt.Member.User;
public GuildMember? Member => _evt.Member;
public User User => _evt.Member?.User ?? _evt.User;
public string Token => _evt.Token;
public string? CustomId => _evt.Data?.CustomId;
public InteractionCreateEvent Event => _evt;