feat(ping): command now shows latency instead of just replying with Pong
This commit is contained in:
parent
e8be911f9f
commit
2284bc1a33
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ module.exports = {
|
|||
.setName('ping')
|
||||
.setDescription('Replies with Pong!'),
|
||||
async execute(interaction) {
|
||||
await interaction.reply('Pong!');
|
||||
interaction.reply('🏓').then (async (msg) => {
|
||||
msg.edit(`🏓Latency is \`${Date.now() - msg.createdTimestamp}ms\``);
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue