From 51ec75d5a36435852de90773273991217fda2233 Mon Sep 17 00:00:00 2001 From: FloatingMilkshake Date: Sun, 1 Sep 2024 12:35:28 -0400 Subject: [PATCH] Use 'is' instead of '==' --- Events/MessageEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Events/MessageEvent.cs b/Events/MessageEvent.cs index 29c93870..da3c07fe 100644 --- a/Events/MessageEvent.cs +++ b/Events/MessageEvent.cs @@ -111,7 +111,7 @@ static async Task DeleteAndWarnAsync(MockDiscordMessage message, string reason, if (!wasAutoModBlock) _ = message.DeleteAsync(); else - if (channel.Type == DiscordChannelType.GuildForum) + if (channel.Type is DiscordChannelType.GuildForum) channel = await client.GetChannelAsync(Program.cfgjson.ForumChannelAutoWarnFallbackChannel); try