Getting the executor from Audit Logs

Hello i have this code:
      const fetchedLogs = await oldMember.guild.fetchAuditLogs({
        limit: 1,
        type: AuditLogEvent.MemberUpdate,
      });

      const userWhoDidIt = fetchedLogs.entries.first();
      const executor = userWhoDidIt.executor


But the userWhoDidIt is undefined
Was this page helpful?