mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 18:50:13 +00:00
Fix permission check for log channels
This commit is contained in:
parent
20ca37938c
commit
537783dd96
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ namespace PluralKit.Bot {
|
||||||
if (logChannel == null || logChannel.Type != ChannelType.Text) return;
|
if (logChannel == null || logChannel.Type != ChannelType.Text) return;
|
||||||
|
|
||||||
// Check bot permissions
|
// Check bot permissions
|
||||||
if (!trigger.Channel.BotHasAllPermissions(Permissions.SendMessages | Permissions.EmbedLinks))
|
if (!logChannel.BotHasAllPermissions(Permissions.SendMessages | Permissions.EmbedLinks))
|
||||||
{
|
{
|
||||||
_logger.Information(
|
_logger.Information(
|
||||||
"Does not have permission to proxy log, ignoring (channel: {ChannelId}, guild: {GuildId}, bot permissions: {BotPermissions})",
|
"Does not have permission to proxy log, ignoring (channel: {ChannelId}, guild: {GuildId}, bot permissions: {BotPermissions})",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue