tournament-helper-bot/commands/utility/ping.js

11 lines
374 B
JavaScript
Raw Permalink Normal View History

2024-12-28 14:04:25 +00:00
const { SlashCommandBuilder, MessageFlags } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Проверить, жив ли бот'),
async execute(interaction) {
await interaction.reply({ content: `Pong!\nWebsocket heartbeat: ${interaction.client.ws.ping}ms.`, flags: MessageFlags.Ephemeral });
},
};