diff --git a/src/client/pages/settings/integration.vue b/src/client/pages/settings/integration.vue index 4516f490d9..7ae1f5e014 100644 --- a/src/client/pages/settings/integration.vue +++ b/src/client/pages/settings/integration.vue @@ -9,7 +9,7 @@
Discord
-

{{ $ts.connectedTo }}: @{{ integrations.discord.username }}#{{ integrations.discord.discriminator }}

+

{{ $ts.connectedTo }}: @{{ integrations.discord.username }}#{{ integrations.discord.discriminator }}

{{ $ts.disconnectSerice }} {{ $ts.connectSerice }}
diff --git a/src/server/api/service/discord.ts b/src/server/api/service/discord.ts index a5ad18d99c..007458066d 100644 --- a/src/server/api/service/discord.ts +++ b/src/server/api/service/discord.ts @@ -70,7 +70,7 @@ async function getOAuth2() { return new OAuth2( meta.discordClientId!, meta.discordClientSecret!, - 'https://discordapp.com/', + 'https://discord.com/', 'api/oauth2/authorize', 'api/oauth2/token'); } else { @@ -174,7 +174,7 @@ router.get('/dc/cb', async ctx => { } })); - const { id, username, discriminator } = await getJson('https://discordapp.com/api/users/@me', '*/*', 10 * 1000, { + const { id, username, discriminator } = await getJson('https://discord.com/api/users/@me', '*/*', 10 * 1000, { 'Authorization': `Bearer ${accessToken}`, }); @@ -245,7 +245,7 @@ router.get('/dc/cb', async ctx => { } })); - const { id, username, discriminator } = await getJson('https://discordapp.com/api/users/@me', '*/*', 10 * 1000, { + const { id, username, discriminator } = await getJson('https://discord.com/api/users/@me', '*/*', 10 * 1000, { 'Authorization': `Bearer ${accessToken}`, }); if (!id || !username || !discriminator) {