HTTP endpoint that creates a link that will appear normal when embedded into Discord or similar platforms, but rickrolls whoever clicks on it. You can find the link at the bottom of the editor after adding this snippet to your project.
// authenticates you with the API standard library!
// type `await lib.` to display API autocompletes
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let bodyHtml = `
Building Discord Bots on Autocode
`;
return {
statusCode: 200,
headers: {
'Content-Type': 'text/html',
},
body: bodyHtml,
};