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});
},
};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:



