diff options
Diffstat (limited to 'src/discord.ts')
-rw-r--r-- | src/discord.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/discord.ts b/src/discord.ts index fac5438..067b899 100644 --- a/src/discord.ts +++ b/src/discord.ts @@ -50,7 +50,7 @@ export async function exchangeCode(redirectUri: string, code: string): Promise<T body: new URLSearchParams(data).toString() } ) - return await fetchResponse.json() + return await fetchResponse.json() as TokenResponse | null } @@ -63,5 +63,5 @@ export async function getUser(accessToken: string): Promise<DiscordUser> { agent: () => httpsAgent, } ) - return response.json() + return await response.json() as DiscordUser } |