Reputation: 91
I am using discord.py to create my bot and I was wondering how to create roles/permissions specific to the bot?
What that means is when the bot enters the server for the first time, it has predefined permissions and role set in place so the admin of the server doesn't need to set a role and permissions for the bot.
I have been trying to look up a reference implementation of this but no luck. If someone can point me at example of how to get a simple permission/role for a bot that will be great!
Upvotes: -1
Views: 8354
Reputation: 730
you want to do this through oath2 using the url parameters
As Astrydax said, the bot will automatically create its own role upon invite, and you can invite you bot here: Discord Developers
Upvotes: 0
Reputation: 350
Bot will create it's own role when it joins the server through the invite. You can set the bot's role permissions in OAuth2. Just click this link and select your application. Then go to OAuth2 (or create a bot if u didn't) and select all permissions which your bot's role will have. Then copy the URL (which will be your bot's invite). Invite your bot. Done!
Upvotes: 1