fetch correct type from the audit log

This commit is contained in:
loicbersier 2020-06-08 15:06:03 +02:00
parent 9b6f2b467a
commit 26bae15571

View file

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