mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
clean up compiler warnings
This commit is contained in:
parent
467d0746bd
commit
5d8c16e480
2 changed files with 5 additions and 5 deletions
|
|
@ -77,7 +77,8 @@ 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 // todo: these nullable?
|
||||
InteractionCreateEvent e => e.Member.User.Id,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
private ulong? GetMessageId(IGatewayEvent evt) => evt switch
|
||||
|
|
@ -90,6 +91,7 @@ namespace PluralKit.Bot
|
|||
MessageReactionRemoveAllEvent e => e.MessageId,
|
||||
MessageReactionRemoveEmojiEvent e => e.MessageId,
|
||||
InteractionCreateEvent e => e.Message?.Id,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
private record Inner(List<LogEventProperty> Properties): ILogEventEnricher
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue