This commit is contained in:
Bray 2023-03-23 16:58:33 +00:00 committed by GitHub
commit 9b076d527a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ public class LogChannelService
// Find log channel and check if valid // Find log channel and check if valid
var logChannel = await FindLogChannel(guildId, logChannelId.Value); 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 // Check bot permissions
var perms = await GetPermissionsInLogChannel(logChannel); var perms = await GetPermissionsInLogChannel(logChannel);