Discord API HELP

Hi,
I’m working with discord API. I’m facing an issue while getting guild memebrs.

$authToken ="MYTOKEN";
$url="https://discordapp.com/api/v6/users/@me/guilds";

$ch = curl_init();
curl_setopt_array($ch, array(
    CURLOPT_URL            => $url,
    CURLOPT_HTTPHEADER     => array('Authorization: Bearer '.$authToken),
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_FOLLOWLOCATION => 1,
    CURLOPT_VERBOSE        => 1,
    CURLOPT_SSL_VERIFYPEER => 0,
));
$response = curl_exec($ch);
curl_close($ch); 

The API call works fine and gives me a list of guilds with their id’s. For example one of the id’s was 431731422857003020, but when I tried to make another API call with curl to get list of members

$url="https://discordapp.com/api/v6/guilds/431731422857003020/members";

It gave me this error: {"code": 0, "message": "401: Unauthorized"}

I am not sure if it is because I should use a different method to get the member list or if I should add a different scope, I searched everywhere, but did not see any proper documentation about