Okay so... I made a post previously about the same issue, and tried everything y'all suggested, but I couldn't fix it.
Quick context: I have two bots, one for prod and one for test, both are a member of my test server. The test bot can register ALL of its commands on that server, meanwhile prod bot can only register the ones not specific to the server (I added some code below to help explain this).
@commands.slash_command(name = 'adminpanel', description = '[...]')
# This command is successfully registered on my test server, and users can access it
@commands.slash_command(name = 'login', description = '[...]', guild_ids = [TEST_SERVER_GUILD_ID])
# This command throws 403 Forbidden when trying to register.
I tried:
- Checking the guild id specified - Yes, it's the correct ID.
- Giving ALL permissions to the bot (also setting intents to discord.Intents.all() with gateway intents enabled).
- Kicking and re-inviting the bot with "bot" and "application.commands" scopes (twice).
- Starting up the bot on my Windows laptop instead of the Linux server it usually runs on (so not an enviroment issue)
- Kicking test bot and only starting up prod bot.
Neither of the above worked out, I still get 403 Forbidden but only for the commands specific to the test server. I use py-cord 2.4.1* and Python 3.9.13.
Any ideas of what is possibly wrong? I appreciate any help 🙏