From 89e287bc521f71cc6dfe1cd4119015e8040fb92d Mon Sep 17 00:00:00 2001 From: IGuessItsBray Date: Mon, 30 Jan 2023 11:56:02 -0500 Subject: [PATCH 1/3] Add CoreBot compatability --- docs/content/staff/compatibility.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/staff/compatibility.md b/docs/content/staff/compatibility.md index a1ac37cd..7a046bc4 100644 --- a/docs/content/staff/compatibility.md +++ b/docs/content/staff/compatibility.md @@ -7,6 +7,7 @@ Some moderation bots have offical PluralKit support, and properly handle excludi - [**Catalogger**](https://catalogger.starshines.xyz/docs) - [**Aero**](https://aero.bot/) +- [**CoreBot**](https://discord.gg/GAAj6DDrCJ) If your server uses an in-house bot for logging, you can use [the API](/api) to implement support yourself. From 948aa19f6e76d7158ec8666a12725f76e8f63615 Mon Sep 17 00:00:00 2001 From: IGuessItsBray <97918955+IGuessItsBray@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:52:23 -0400 Subject: [PATCH 2/3] Allow forum posts/threads for logging Allow server staff to set a thread or forum post as the home for logs Co-Authored-By: spiral --- PluralKit.Bot/Services/LogChannelService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index 5da33ea5..a3964d12 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -75,7 +75,7 @@ public class LogChannelService // Find log channel and check if valid var logChannel = await FindLogChannel(guildId, logChannelId.Value); - if (logChannel == null || logChannel.Type != Channel.ChannelType.GuildText) return null; + if (logChannel == null || logChannel.Type != Channel.ChannelType.GuildText || Channel.ChannelType.GuildPublicThread || Channel.ChannelType.GuildPrivateThread) return null; // Check bot permissions var perms = await GetPermissionsInLogChannel(logChannel); From 54563030e2644cd7ee5ebfa624f2c85c7d5cc96d Mon Sep 17 00:00:00 2001 From: IGuessItsBray <97918955+IGuessItsBray@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:58:26 -0400 Subject: [PATCH 3/3] Fixed error with the OR check Co-Authored-By: spiral --- PluralKit.Bot/Services/LogChannelService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index a3964d12..b63bf817 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -75,7 +75,7 @@ public class LogChannelService // Find log channel and check if valid var logChannel = await FindLogChannel(guildId, logChannelId.Value); - if (logChannel == null || logChannel.Type != Channel.ChannelType.GuildText || Channel.ChannelType.GuildPublicThread || Channel.ChannelType.GuildPrivateThread) return null; + if (logChannel == null || logChannel.Type != Channel.ChannelType.GuildText | Channel.ChannelType.GuildPublicThread | Channel.ChannelType.GuildPrivateThread) return null; // Check bot permissions var perms = await GetPermissionsInLogChannel(logChannel);