Add slash commands support #20

Merged
Anri merged 5 commits from commands into main 2022-07-03 21:09:58 +02:00
Showing only changes of commit bae3bb4cab - Show all commits

View file

@ -10,7 +10,7 @@ export default {
const sent = await interaction.reply({ content: 'Pinging...', fetchReply: true }); const sent = await interaction.reply({ content: 'Pinging...', fetchReply: true });
interaction.editReply( interaction.editReply(
`Roundtrip latency: `Roundtrip latency: \
${sent.createdTimestamp - interaction.createdTimestamp}ms ${sent.createdTimestamp - interaction.createdTimestamp}ms
Websocket heartbeat: ${client.ws.ping}ms.`); Websocket heartbeat: ${client.ws.ping}ms.`);
}, },