mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 11:10:13 +00:00
Fixed error with the OR check
Co-Authored-By: spiral <spiral@spiral.sh>
This commit is contained in:
parent
948aa19f6e
commit
54563030e2
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 || 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue