This commit is contained in:
2026-03-15 12:22:42 +01:00
parent cd99275933
commit 311ba5e7f3
558 changed files with 55182 additions and 22981 deletions

View File

@@ -6,7 +6,8 @@ module.exports = {
.setName('ping')
.setDescription('Affiche la latence du bot.'),
async execute(interaction) {
const sent = await interaction.deferReply({ fetchReply: true });
await interaction.deferReply();
const sent = await interaction.fetchReply();
const apiLatency = Math.round(interaction.client.ws.ping);
const roundTripLatency = sent.createdTimestamp - interaction.createdTimestamp;
@@ -29,4 +30,4 @@ module.exports = {
await interaction.editReply({ embeds: [embed] });
},
};
};