From 8e2c5bedad35e6b396279f8e3e6dc3fa71c9b53e Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 30 Oct 2023 22:07:56 +0500 Subject: [PATCH] remove port from redirect --- dashboard/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/dashboard.js b/dashboard/dashboard.js index 567159df..6459b7aa 100644 --- a/dashboard/dashboard.js +++ b/dashboard/dashboard.js @@ -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",