mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 03:00:13 +00:00
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 <spiral@spiral.sh>
This commit is contained in:
parent
89e287bc52
commit
948aa19f6e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue