update ping
This commit is contained in:
2 files changed
+13
-4
No files matched your search
+10
-2
@@ -18,11 +18,19 @@ module.exports = {
|
||||
* @param {string[]} args
|
||||
* @param {*} param3
|
||||
*/
|
||||
run: async (client, interaction, args, { GuildDB }) => {
|
||||
run: async (client, interaction, args, { GuildDB }, start) => {
|
||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
||||
}
|
||||
return interaction.send('Pong!');
|
||||
|
||||
const end = new Date().getTime();
|
||||
const time = end - start;
|
||||
|
||||
const pingEmbed = new MessageEmbed()
|
||||
.setDescription(`**Pong!** Bot ping: ${time}ms`)
|
||||
.setColor(client.config.EmbedColor);
|
||||
|
||||
return interaction.send({ embeds: [pingEmbed] });
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user