forked from Supositware/Haha-Yes
Fix showing wrong user from log
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
b21c3ea86b
commit
4cdbc5298f
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue