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) {