Adding to Discord Servers
You've crafted an amazing Robo, and now it's time to bring it to life on your Discord Servers! To add your Robo, you'll need special invite links with the necessary permissions and scopes.
Don't worry, we've got you covered with two ways to generate these links: the Robo.js CLI and the Discord Developer Portal.
You can always re-generate invite links and add your Robo again to update the permissions given.
Robo.js CLI: The Cool Way 🔥
Robo.js has a rad feature that lets you generate invite links in a snap. Just run the command below, and you'll get an invite link to share or use to add your Robo to Discord servers:
npx robo invite
The robo invite
command is currently in beta, so it might not detect all the permissions necessary, or it could ask for extra ones you don't need.
Discord Developer Portal: The Classic Way 🕰️
If you're a fan of the Discord Developer Portal, you can generate your invite link by following these steps:
- Head over to the Discord Developer Portal.
- Pick your application (Robo) from the list.
- Go to the "OAuth2" section in the left sidebar.
- In the "Scopes" section, check the "bot" box.
- In the "Bot Permissions" section, select the permissions your Robo requires.
- Grab the generated invite link at the very bottom.
You're all set! Your invite link is ready to share or use to add your Robo to Discord servers! 🌟
Customizing Permissions in the Config File 🛠️
Wanna personalize permissions and scopes for robo invite
? Add an invite
section to your config file like this:
/**
* @type {import('robo.js').Config}
**/
export default {
// ...rest of config
invite: {
autoPermissions: false,
permissions: ['SendMessages', 'ReadMessageHistory', 'AddReactions'],
scopes: ['applications.commands']
}
}
By setting autoPermissions
to false
, Robo.js won't automatically add extra permissions it thinks you might need.