Skip to content

Commit f45b39a

Browse files
committed
fix(api): add 308 status code for /invite
1 parent bc6aeb1 commit f45b39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ app.get("/invite", (req, res) => {
962962
const guildId = req.query.guild_id;
963963

964964
if (!guildId || typeof guildId !== "string")
965-
res.redirect(
965+
res.status(308).redirect(
966966
"https://discord.com/oauth2/authorize?client_id=1245807579624378601&permissions=1099780115520&integration_type=0&scope=bot+applications.commands"
967967
);
968968
else {

0 commit comments

Comments
 (0)