How can I check user roles

So I have a slash command where the member has to mention a user in the command option, how can I get the roles from the user the member mentioned in the command to see if it has a role
Was this page helpful?