I need to somehow check someones role with only their id.
I have found the
You can't get user role directly. First, you have to get the user_meta_data, and it will return an Object that will contain user roles.
$user_meta=get_userdata($user_id); $user_roles=$user_meta->roles; //array of roles the user is part of.