From cc0edd3ed835aa2e1297116f2ad8d021afffa3f9 Mon Sep 17 00:00:00 2001 From: spiral Date: Tue, 5 Jul 2022 14:42:58 -0400 Subject: [PATCH] chore: lint --- PluralKit.Bot/CommandSystem/Context/Context.cs | 6 +++--- PluralKit.Bot/Services/WebhookExecutorService.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PluralKit.Bot/CommandSystem/Context/Context.cs b/PluralKit.Bot/CommandSystem/Context/Context.cs index 3a0fb4be..6398f34f 100644 --- a/PluralKit.Bot/CommandSystem/Context/Context.cs +++ b/PluralKit.Bot/CommandSystem/Context/Context.cs @@ -96,9 +96,9 @@ public class Context // if (embed != null) // { - // Sensitive information that might want to be deleted by :x: reaction is typically in an embed format (member cards, for example) - // but since we can, we just store all sent messages for possible deletion - await _commandMessageService.RegisterMessage(msg.Id, msg.ChannelId, Author.Id); + // Sensitive information that might want to be deleted by :x: reaction is typically in an embed format (member cards, for example) + // but since we can, we just store all sent messages for possible deletion + await _commandMessageService.RegisterMessage(msg.Id, msg.ChannelId, Author.Id); // } return msg; diff --git a/PluralKit.Bot/Services/WebhookExecutorService.cs b/PluralKit.Bot/Services/WebhookExecutorService.cs index f9ccaf76..e7aec9bd 100644 --- a/PluralKit.Bot/Services/WebhookExecutorService.cs +++ b/PluralKit.Bot/Services/WebhookExecutorService.cs @@ -173,7 +173,7 @@ public class WebhookExecutorService // We don't care about whether the sending succeeds, and we don't want to *wait* for it, so we just fork it off var _ = TrySendRemainingAttachments(webhook, req.Name, req.AvatarUrl, attachmentChunks, req.ThreadId); - + // for some reason discord may(?) return a null guildid here??? return webhookMessage with { GuildId = webhookMessage.GuildId ?? req.GuildId }; }