diff --git a/event/listeners/log/channelUpdate.js b/event/listeners/log/channelUpdate.js index 3ddd35b..7a19b56 100644 --- a/event/listeners/log/channelUpdate.js +++ b/event/listeners/log/channelUpdate.js @@ -11,7 +11,7 @@ class channelUpdateListener extends Listener { async exec(oldChannel, newChannel) { const logStats = await LogStats.findOne({where: {guild: newChannel.guild.id}}); - if (oldChannel === newChannel) return; + if (oldChannel === newChannel || oldChannel.rawPosition !== newChannel.rawPosition) return; if (logStats) { const fetchedLogs = await newChannel.guild.fetchAuditLogs({ limit: 1,