This will automatically add the specific role you want for when a user joins your server! Just replace `MEMBER-ROLE-ID-HERE` with your member role! Requires your bot to have privileged intents enabled.
// A simple auto role command for your server!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.guilds['@0.1.0'].members.roles.update({
role_id: `MEMBER-ROLE-ID-HERE`, // Put the ID of your member role here!
user_id: `${context.params.event.user.id}`,
guild_id: `${context.params.event.guild_id}`,
});