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:----IZWLs4o7shURXLOSsuKi1uF9NhI+mrDEwZHd0GbXIDIKrXz+7A2ly54JHXPsJVYHjZb6mq2SEkmZfP/df2RiYRoLSGJ9LMca1eS2aJ8udUigfAFogiOk+rM0f+B+jQynsZprWF71SaWGuOlAFffQ4Alsn/6vozcHOnQx9l8wcieE2q4madBYTFhrKXqhRfqc60lmIWT76Vj8vTAqo2/C8f+5qfpFaKDNNt9VQvbYuxyh7/6aXd2ISt7fRyGHceDc5PajupdWnW2rzJxyg46+lP1hIYvVH4Ez/ef9K8rEphiKjNRLjEO5lRqcSKWtASi86BLaiWbO0QqMkFyoGnAdPV8PWQFpAR/TWtqkdcqDN/cfPEZsDHcrYU4c5r+n4lMpfqfR0pjUvzK6ZP9MWiTZbjdxSM4AZMh4o43sMuXgUDTTR0F5DjZb2csb9lZ55LMmDq/1dNiqQOAgRMnK+N2FpQFaXSzynmc8NzivP1ZBDio3Gg6v8mlST3SRE4+u4Tihzvbj8peJvQXlgivijEDhoo7RoNNiTKaX9AGYYDgGx/Nj+eBrvUCXHDXS5wmd8859PTLMpAzSfLAOdcxA4C196dVdl3dS3ZGAt5b1VSvW2aEG0HYPU+/hI7amhYuZbWCo18YBUpi604PEEMsFu+3w3e7WDfMAzXmonZJdqRHn6GA=----ATTACHMENT:----OTI0MDQyOTM3NTc5NzA5MSA0Mjg0OTEzOTQwNDIwMjAyIDM1NzM3MzU5MjMyNjUyNTI=