How do I check if a messages user has a specific role?

        let channel = client.channels.cache.get(DISCORD_COLLABS_CHANNEL);
        let messages = await channel.messages.fetch({limit: 100, cache: false});
        console.log (' here is the first message', Array.from(messages)[0]);
        let lastPostByAdmin = Array.from(messages).filter(m=>m[1].member.roles.cache.has(DISCORD_ADMIN_ROLE));


it doesn't like the last line, cant find .member (but on the docs it says messages have a member property containing the guild member?) I can do user, but it doesn't look like that lets you fetch the roles, just has the basic info.
Was this page helpful?