1.3.1
This is a tiny release to add a warning that we will move entirely to slash commands in 1.4. Known issues Slash commands may (rarely) error with "DiscordAPIError: Unknown interaction" This will be fixed in 1.4
This commit is contained in:
commit
3a33e4df9c
|
@ -1,6 +1,10 @@
|
||||||
node_modules/
|
#VSCode configurations.
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
# NPM/Yarn stuff.
|
||||||
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
releasenotes.txt
|
|
||||||
|
# Let's not leak any tokens now... That would be very bad
|
||||||
config.json
|
config.json
|
||||||
.env
|
.env
|
||||||
|
|
|
@ -11,6 +11,17 @@ module.exports = {
|
||||||
if (!client.commands.has(command)) return;
|
if (!client.commands.has(command)) return;
|
||||||
|
|
||||||
try {
|
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);
|
await client.commands.get(command)?.parseMessage(client, config, message, args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
Reference in New Issue