From 4cdbc5298fde21f8edbb7b901594c8a100e2bc5f Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 2 Jun 2020 23:00:32 +0200 Subject: [PATCH] Fix showing wrong user from log Signed-off-by: loicbersier --- event/listeners/log/channelUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/listeners/log/channelUpdate.js b/event/listeners/log/channelUpdate.js index c565d59..b37656d 100644 --- a/event/listeners/log/channelUpdate.js +++ b/event/listeners/log/channelUpdate.js @@ -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; \ No newline at end of file +module.exports = channelUpdateListener;