How to search through auditlog targets

how to search through auditlogs targets, I'm using this code:
const 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);
but RoleLog.target.filter is not a function
Was this page helpful?