bwmarrin / discordgo

(Golang) Go bindings for Discord
BSD 3-Clause "New" or "Revised" License
5k stars 795 forks source link

Discord Error 403 error code: 50001 Missing Access #1473

Open nyx6965 opened 8 months ago

nyx6965 commented 8 months ago

I am trying add a discord slash commands. But i am getting this error. I am using the examples. Copied the entire code to test.

Code 2023/12/21 23:39:33 Adding commands... 2023/12/21 23:39:33 Cannot create 'basic-command' command: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001} 2023/12/21 23:39:33 Cannot create 'permission-overview' command: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001} 2023/12/21 23:39:34 Cannot create 'basic-command-with-files' command: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001} 2023/12/21 23:39:34 Cannot create 'localized-command' command: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001} 2023/12/21 23:39:35 Cannot create 'options' command: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001} q^Csignal: interrupt

Rpi-Dude commented 1 month ago

If you have just copy pasted the whole code then its likely that you have missed to pass the token flag which leaves discord with no way of knowing for which bot you are registering the commands. If that was not helpful please provide the command you started the code with.