'fetchLogs return null executor
I want to fetch audit logs entries with my bot, so i use fetchAuditLogs(), it return me everything
But when i use makeCache method in client options and i put UserManager: 0, the function will return executor: null, so my question is
How can i get the executor id without caching every members, also if the user is not cached it also return null.
const client = new Client({
makeCache: Options.cacheWithLimits({
UserManager: 0
}),
});
const audit = guild.fetchAuditLogs()
const { executor } = audit.entries.first()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
