Haha-Yes/commands/utility/ping.js

11 lines
292 B
JavaScript
Raw Permalink Normal View History

2022-06-17 01:25:05 +02:00
import { SlashCommandBuilder } from '@discordjs/builders';
2022-06-17 01:25:05 +02:00
export default {
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\``);
},
};