#Get Global Slash commands
1 messages · Page 1 of 1 (latest)
What is at Line 62 in bot.cs ?
It's failing on the API call
However without knowing the full context, it's hard to say if this is user error
I was about to say it looks like a library bug but I'm not too sure
okey how remove all global commands ?
To clear slash commands, do one of the following:
➜ Use a tool like Insomnia (https://insomnia.rest), and PUT [] to api/v10/applications/:app_id/commands*
➜ Use BulkOverrideApplicationCommandsAsync on the DiscordClient**
➜ Use SlashCommandExtension#RegisterCommands<ApplicationCommandModule>()***
➜ Use curl: curl -H "Authorization: Bot <token>" -H "Content-Type: application/json" -X PUT --data-raw "[]" "https://discord.com/api/v10/applications/:app_id/commands"
* For guild guild commands, use api/v10/applications/:app_id/guilds/:guild_id/commands instead.
** For guild commands, use BulkOverrideGuildApplicationCommandsAsync
*** For guild commands, pass the ID of your guild.
:app_id and :guild_id are placeholders for actual IDs.
If you're using the third route, you must start the client for it to take effect.