Answers for "delete discord.js slash command"

0

delete discord.js slash command

//Delete command globally:
client.api.applications(client.user.id).commands("command-id (interaction.data.id)").delete(); 

//Delete for specific guild(s):
client.api.applications(client.user.id).guilds("guild-id(s)").commands("command-id (interaction.data.id)").delete();
Posted by: Guest on May-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language