How to search through auditlog targets
how to search through auditlogs targets, I'm using this code:
but
but
RoleLog.target.filter is not a functionRoleLog.target.filter is not a functionconst fetchedLogs = await <guild>.fetchAuditLogs({
limit: 1,
type: AuditLogEvent.MemberRoleUpdate,
}).catch(err => { console.log(err) });
const RoleLog = fetchedLogs.entries.first();
tt = RoleLog.changes.filter(t => t.key == `$add`) && RoleLog.target.filter(u => u.id == `userid`);
console.log(tt);