Skip to content

Commit

Permalink
fix(logger): check for ViewChannel permission (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet authored Feb 10, 2024
1 parent 295d81c commit 7f9dd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/moderation/managers/LoggerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7f9dd23

Please sign in to comment.