📜  删除 discord.js 斜杠命令 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:07.693000             🧑  作者: Mango

代码示例1
//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();