remove port from redirect

This commit is contained in:
Jonny_Bro (Nikita) 2023-10-30 22:07:56 +05:00
parent 5d8dc531bb
commit 8e2c5bedad

View file

@ -55,7 +55,7 @@ module.exports.load = async client => {
// },
cookiesSecret: client.config.dashboard.secret,
domain: client.config.dashboard.domain,
redirectUri: `${client.config.dashboard.domain}${client.config.dashboard.port !== 80 ? `:${client.config.dashboard.port}` : ""}/discord/callback`,
redirectUri: `${client.config.dashboard.domain}/discord/callback`,
bot: client,
ownerIDs: [client.config.owner.id],
requiredPermissions: PermissionsBitField.Flags.ViewChannel,
@ -63,7 +63,7 @@ module.exports.load = async client => {
clientId: client.config.userId,
scopes: ["bot", "applications.commands"],
permissions: "8",
redirectUri: `${client.config.dashboard.domain}${client.config.dashboard.port !== 80 ? `:${client.config.dashboard.port}` : ""}`,
redirectUri: `${client.config.dashboard.domain}`,
},
supportServer: {
slash: "/support",