From 7f9dd232ef207783c59bb2a035a2ce7178907555 Mon Sep 17 00:00:00 2001 From: Aura Date: Sun, 11 Feb 2024 00:07:27 +0100 Subject: [PATCH] fix(logger): check for `ViewChannel` permission (#2578) --- src/lib/moderation/managers/LoggerManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/moderation/managers/LoggerManager.ts b/src/lib/moderation/managers/LoggerManager.ts index bdc74cc2424..fbe6765f7ce 100644 --- a/src/lib/moderation/managers/LoggerManager.ts +++ b/src/lib/moderation/managers/LoggerManager.ts @@ -50,7 +50,7 @@ export class LoggerManager { const messageOptions = this.#resolveMessageOptions(await options.makeMessage()); - let requiredPermissions = PermissionFlagsBits.SendMessages; + let requiredPermissions = PermissionFlagsBits.SendMessages | PermissionFlagsBits.ViewChannel; if (!isNullishOrEmpty(messageOptions.embeds)) requiredPermissions |= PermissionFlagsBits.EmbedLinks; if (!isNullishOrEmpty(messageOptions.files)) requiredPermissions |= PermissionFlagsBits.AttachFiles;