Haha-Yes/commands/utility/ping.js

12 lines
305 B
JavaScript
Raw Normal View History

import { SlashCommandBuilder } from 'discord.js';
2022-06-17 01:25:05 +02:00
export default {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
category: 'utility',
async execute(interaction) {
2022-06-17 07:31:58 +02:00
await interaction.reply(`Pong! \`${Math.round(interaction.client.ws.ping)} ms\``);
},
};