From 367a797851ad56a6fe0b46e8ee9e299e6bf5141a Mon Sep 17 00:00:00 2001 From: Sophie Marie Date: Mon, 3 Oct 2022 14:24:39 -0500 Subject: [PATCH] Add a warning when using prefix commands that they're deprecated and will be removed. --- events/messageCreate.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/events/messageCreate.js b/events/messageCreate.js index a8cdc43..edf9b15 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -11,6 +11,17 @@ module.exports = { if (!client.commands.has(command)) return; try { + message.channel.send({ + embeds: [{ + title: `<:AnitroxWarning:997565364718276669> Attention, ${message.author.username}!`, + description: `Anitrox will be moving entirely to slash commands in 1.4, You will no longer be able to use commands by typing ${config.prefix}command.\n Please use slash commands in the future. [Learn more](https://support.discord.com/hc/en-us/articles/1500000368501-Slash-Commands-FAQ)`, + color: 15548997, + footer: { + icon_url: message.author.displayAvatarURL(), + text: config.footerTxt + } + }] + }); await client.commands.get(command)?.parseMessage(client, config, message, args); } catch (error) { console.error(error);