2022-08-28 17:03:15 +02:00
|
|
|
import { SlashCommandBuilder } from 'discord.js';
|
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!'),
|
2022-08-28 17:03:15 +02:00
|
|
|
category: 'utility',
|
2022-06-16 09:18:39 +02:00
|
|
|
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
|
|
|
},
|
|
|
|
};
|