const { SlashCommandBuilder, CommandInteraction, PermissionFlagsBits, EmbedBuilder, } = require("discord.js"); module.exports = { data: new SlashCommandBuilder() .setName("ping") .setDescription("Przetestuj czas reakcji bota."), async execute(interaction) { const embed = new EmbedBuilder() .setDescription(`🏓 Pong! Client ${ping} ms | Websocket: ${interaction.client.ws.ping}ms`) .setColor("#ffd700"); await interaction.reply({ embeds: [embed], ephemeral: true }); const reply = await interaction.fetchReply(); const ping = reply.createdTimestamp - interaction.createdTimestamp; }, };