3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

discordapp.com -> discord.com

This commit is contained in:
Dragory 2020-05-04 21:56:15 +03:00
parent 4cf8c2ae92
commit b251942e40
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ declare global {
}
}
const DISCORD_API_URL = "https://discordapp.com/api";
const DISCORD_API_URL = "https://discord.com/api";
function simpleDiscordAPIRequest(bearerToken, path): Promise<any> {
return new Promise((resolve, reject) => {
@ -94,8 +94,8 @@ export function initAuth(app: express.Express) {
passport.use(
new OAuth2Strategy(
{
authorizationURL: "https://discordapp.com/api/oauth2/authorize",
tokenURL: "https://discordapp.com/api/oauth2/token",
authorizationURL: "https://discord.com/api/oauth2/authorize",
tokenURL: "https://discord.com/api/oauth2/token",
clientID: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
callbackURL: process.env.OAUTH_CALLBACK_URL,