2022-06-17 01:25:05 +02:00
|
|
|
import { SlashCommandBuilder } from '@discordjs/builders';
|
2022-06-16 09:18:39 +02:00
|
|
|
|
2022-06-17 01:25:05 +02:00
|
|
|
export default {
|
2022-06-16 09:18:39 +02:00
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('ping')
|
|
|
|
.setDescription('Replies with Pong!'),
|
|
|
|
async execute(interaction) {
|
2022-06-17 07:31:58 +02:00
|
|
|
await interaction.reply(`Pong! \`${Math.round(interaction.client.ws.ping)} ms\``);
|
2022-06-16 09:18:39 +02:00
|
|
|
},
|
|
|
|
};
|