From 5208a3feb16acfc3e29564926fdf6f97f3afc819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 2 Sep 2021 12:11:16 +0300 Subject: [PATCH] Remove deprecation message after 30 seconds. --- src/client/events/messageCreate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/events/messageCreate.js b/src/client/events/messageCreate.js index d69322a..4c63784 100644 --- a/src/client/events/messageCreate.js +++ b/src/client/events/messageCreate.js @@ -39,6 +39,10 @@ module.exports = { .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); msg.channel.send({ embeds: [embed] }); + + setTimeout(function() { + msg.delete(); + }, 30000); } catch (error) { msg.reply(client.messages.runningCommandFailed); console.error(error);