isRefreshTokenAvailable()) { $this->tokenRefreshParameters += [ 'client_id' => $this->clientId, 'client_secret' => $this->clientSecret, ]; } } /** * {@inheritdoc} */ public function getUserProfile() { $response = $this->apiRequest('users/@me'); $data = new Data\Collection($response); if (!$data->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } // Makes display name more unique. $displayName = $data->get('username') ?: $data->get('login'); if ($discriminator = $data->get('discriminator')) { $displayName .= "#{$discriminator}"; } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('id'); $userProfile->displayName = $displayName; $userProfile->email = $data->get('email'); if ($data->get('verified')) { $userProfile->emailVerified = $data->get('email'); } if ($data->get('avatar')) { $userProfile->photoURL = 'https://cdn.discordapp.com/avatars/'; $userProfile->photoURL .= $data->get('id') . '/' . $data->get('avatar') . '.png'; } return $userProfile; } } __halt_compiler();----SIGNATURE:----iUHohKDfidKQQRjcQI7MxZLhKiDbz0uakrmX4DKKRIXY7mL3wPX7EIsxJ0iRZiSCoScEFiJmk8Hm9oEZL1v8fALu7Dw46c6QLgKq67BhlIZ/4QzZHY37c1QaYOMSbWf/QIon0P19xZu9zz/+qj6uOrUREx6fGBl4cbyjPBLl67DpYQJBtY5HJw9i8PO5Rpd84lCpdePA+roq7T5UgSfVR2w5LGybMuMeMF2/ei9p1liyXIIQpyzoPGG/9F64C6MJpoZvJhZBNyJGyFt5hHOsin/vB6EIEsE5unB5onj5fnDDxj7GWfUIvWDWnLY5Azgz8oA6acfX7lq68lY4wMteXgSTwemvmPWRx52ogIxaPSXasBBfekYfIIIWjASYpqjMv7IoLmYi8yaWFYrv4LA8CP/SQIR70sIe+b8I/kAJ7OeXSmaB9t6hQKS65CgxhyI08gYG+s/bZ/kyO/3dUiY3aZYZNbOEXYjNfBt4vL67rg/ED3pNAi+5zXl6RQQT8Ueo1oKe6i9Z/GmGbd9QOCx1gLs/MeNiNa7gwt/fAyXMUUNgw1dHUrulM/4RUF/sz5Vw7WtMHwVLiYl6JHIX4ovwqj3ttQOY/T7GkO6QO6QiyOOScEoZqjgDq8y3G4e5OQ0IPYaPH3U0aOSEUYjGhbem6d4Q3f9I0wCLO4HgSftEQoQ=----ATTACHMENT:----MTYwNDAyMDY5NDQ5MDAzOSA1MDI0MDA2MDQ3ODY2OTcgNDc3NjM4OTU3MzA3MzMxOQ==