Skip to content
Merged
2 changes: 1 addition & 1 deletion api/src/index.ts
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll be using 308 from hereon in even for GET because why not

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah 308 is a permanent redirect, works well for stuff that won't change often because the browser caches it

Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ app.get("/invite", (req, res) => {
const guildId = req.query.guild_id;

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