#how to delete slash commands
1 messages · Page 1 of 1 (latest)
if you guys used the deployment script from the guide, you can delete all slash commands--- like that yes
I'm registering them under client.api but I can't even find docs on that and I wrote that code a while ago
actually to be more specific, that line of code will delete all global commands
should .application be a property of Client? I can't see it in the docs: https://discord.js.org/#/docs/discord.js/v12/class/Client
why are you on the v12 docs
because I'm still on v12 and haven't upgraded yet
well I'm using them in v12 somehow
yeah, there was a hacky way to get them in
maybe it was beta support and I'm accessing them under an experimental now deprecated method...
yeah I'm doing client.api.applications(client.user.id).guilds(guildId).commands.post()
it wasn't beta support
discord.js allows you to do things raw if you really want to, so people decided to do that for slash commands since v13 took a while to come out
we can't help you here if you intend to continue using v12
ok that's fine but in v13 is client.api still a thing? I'm assuming to do something with the raw Discord API? I can't find that in the docs for Client properties either: https://discord.js.org/#/docs/discord.js/v13/class/Client
well in v13, client.application is documented
Client#application
The application of this bot