We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 720522e commit c72ecf7Copy full SHA for c72ecf7
1 file changed
src/Discord/Endpoints/OAuth2Endpoint.php
@@ -118,6 +118,12 @@ private function get(
118
$OAA->removeToken($response, $headers, $body);
119
return;
120
}
121
+ if (isset($params['user']) && $OAA->isAuthed()) {
122
+ $response = Response::STATUS_OK;
123
+ $headers = ['Content-Type' => 'application/json'];
124
+ $body = json_encode($OAA->getUser());
125
+ return;
126
+ }
127
128
129
/**
0 commit comments