From 91cfd8ebf3f9b2b7954bc63e5f16d575c29fa313 Mon Sep 17 00:00:00 2001 From: Tutur33 Date: Sun, 25 Feb 2024 19:30:27 +0100 Subject: [PATCH] add end components ping --- commands/utils/ping.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/utils/ping.js b/commands/utils/ping.js index 3e66efb..b5429a6 100644 --- a/commands/utils/ping.js +++ b/commands/utils/ping.js @@ -31,5 +31,9 @@ module.exports = { }); interaction.reply({ content: 'La latence a été rafraichie', ephemeral: true }); }); + + collector.on('end', () => { + sentMessage.edit({ components: [] }); + }); }, }; \ No newline at end of file