From d88188182c16d7e2cfe17ef68f98c5bafbc257b0 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 12 Jan 2025 02:52:16 -0700 Subject: [PATCH] Bwuh --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2caf226..c406145 100644 --- a/index.js +++ b/index.js @@ -460,7 +460,7 @@ xmpp.on("stanza", (stanza) => { let channel = discord.channels.cache.get(row.channelid); if (!channel) return console.log(`${colors.red("[ERROR]")} Channel ${row.channelid} not found`); - if (!channel.permissionsFor(discord.user).has("SEND_MESSAGES")) { + if (!channel.permissionsFor(discord.user).has(Discord.PermissionFlagsBits.SendMessages)) { const logs = await channel.guild.fetchAuditLogs({ type: Discord.AuditLogEvent.BotAdd }); const user = logs.entries.find(entry => entry.target.id === discord.user.id)?.executor; if (user) {