How do i get all the roles that one member has?

I tried
console.log(msg.member.roles)


But it doesn't work and ive tried variations but i am confused
Was this page helpful?