Fixed error with the OR check

Co-Authored-By: spiral <spiral@spiral.sh>
This commit is contained in:
IGuessItsBray 2023-03-23 12:58:26 -04:00
parent 948aa19f6e
commit 54563030e2

View file

@ -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);