Skip to content

Commit

Permalink
Use 'is' instead of '=='
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Sep 1, 2024
1 parent 4f3543d commit 51ec75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Events/MessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51ec75d

Please sign in to comment.