1bot.api.applications(bot.user.id).commands.post({
2 data: {
3 name: "commandname",
4 description: "Command Description",
5 },
6});
1client.on('interactionCreate', (interaction) => {
2 if(!interaction.isCommand()) return;
3 interaction.reply('Pong!')
4})