Fix showing wrong user from log

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-06-02 23:00:32 +02:00
parent b21c3ea86b
commit 4cdbc5298f

View file

@ -15,7 +15,7 @@ class channelUpdateListener extends Listener {
if (logStats) {
const fetchedLogs = await newChannel.guild.fetchAuditLogs({
limit: 1,
type: 'CHANNEL_CREATE',
type: 'CHANNEL_UPDATE',
});
const updateLog = fetchedLogs.entries.first();
@ -54,4 +54,4 @@ class channelUpdateListener extends Listener {
}
}
}
module.exports = channelUpdateListener;
module.exports = channelUpdateListener;