mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): support threads for logs (#541)
This commit is contained in:
parent
93bef6ea15
commit
1a4b21ccac
2 changed files with 2 additions and 2 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 && logChannel.Type != Channel.ChannelType.GuildPublicThread && logChannel.Type != Channel.ChannelType.GuildPrivateThread) return null;
|
||||
|
||||
// Check bot permissions
|
||||
var perms = await GetPermissionsInLogChannel(logChannel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue