Add ws heartbeat to ping command

This commit is contained in:
Michael 2022-12-18 00:05:12 -06:00
parent bc03b43f6f
commit 01bc1a37f9

View file

@ -12,6 +12,6 @@ module.exports = {
.setName('ping')
.setDescription('Checks to see if the bot is online, as well as it\'s ping'),
async execute(interaction) {
await interaction.reply({ content: 'Pong!', ephemeral: true });
await interaction.reply({ content: `Pong! Current Websocket Heartbeat / ping is ${interaction.client.ws.ping}ms.`, ephemeral: true });
},
};