Discord.py Bot Link returns No Scopes even though I added scopes

1.8k Views Asked by At

After coding a bot in Discord.py, while generating an invite link, I've added all the scopes and I was able to go through and authorize the bot. Then, while inviting it to the server, it gives this page: enter image description here

There are scopes added on the Discord Developer Portal, so this error doesn't make sense.

The first time I did this without the redirect URL (which I am using: https://discord.com/oauth2/authorize), it did work, and I was able to invite it into a test server. Now, I am trying to add it into the main server and it requires me to use the redirect URL, and it does not work anymore.

Can someone explain what is happening with this error and/or explain how to fix it? Thanks!

3

There are 3 best solutions below

2
ESloman On

You need to do:

  • -> Discord Developer Portal
  • -> Your application
  • -> OAuth
  • -> URL Generator
  • -> Select the Bot scope
  • -> Select all the permissions you want at the bottom in the 'Bot permissions' that should have appeared
  • -> Copy the link at the bottom and go to that

I've never had any issues doing that to invite a bot to one of my servers. Shouldn't need a redirect URL either.

1
jheyer159 On

This happened to me due to copy / pasting the link between applications and something malformed the GET parameters to be & which caused the No Scopes Were Provided popup. Regenerating the link and ensuring it's only & separated should fix this problem.

0
Rober On

You can try disabling "REQUIRES OAUTH2 CODE GRANT" option in bot options in the developer page of discord, this should fix the problem because disables OAUTH2.