const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
.addBooleanOption(option =>
option.setName('hide')
.setDescription('Wherever the respond is hidden or not')
.setRequired(true)),
async execute(interaction) {
let hide = interaction.options.getBoolean('hide');
await interaction.reply({content: `API Latency is ${Math.round(interaction.client.ws.ping)}ms`, ephemeral: hide});
},
};
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
.addBooleanOption(option =>
option.setName('hide')
.setDescription('Wherever the respond is hidden or not')
.setRequired(true)),
async execute(interaction) {
let hide = interaction.options.getBoolean('hide');
await interaction.reply({content: `API Latency is ${Math.round(interaction.client.ws.ping)}ms`, ephemeral: hide});
},
};