We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e55f45 commit 906609cCopy full SHA for 906609c
apps/webstack/src/routes/auth/discord/callback/+server.ts
@@ -155,10 +155,10 @@ export const GET = (async ({ url, locals }) => {
155
156
if (result === BotResult.Full) {
157
locals.session.data.error = "You have joined the maxmium amount of servers. Please leave a server before trying to rejoin this one."
158
- return Response.redirect('/');
+ throw redirect(302, '/');
159
} else if (result === BotResult.Error) {
160
locals.session.data.error = "An unknown error occured while trying to join the server."
161
162
}
163
164
console.log(`Discord User joined: ${meData.user.id} - ${meData.user.username}`);
0 commit comments