Ping NaNms

const { SlashCommandBuilder, Client, GatewayIntentBits, WebsocketOptions } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds]});
module.exports = {
    data: new SlashCommandBuilder()
        .setName('ping')
        .setDescription('Omni-Bot Replies with Pong!'),
    async execute(interaction) {
        await interaction.reply({content:` Websocket heartbeat: ${client.ws.ping}ms.`, ephemeral: true});
    },
};


Result:
Screenshot_2023-06-08-07-21-57-830_com.discord.jpg
Was this page helpful?