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:
Sophie Marie 2022-10-03 20:18:43 -05:00 committed by GitHub
commit 3a33e4df9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1509 additions and 2 deletions

8
.gitignore vendored
View File

@ -1,6 +1,10 @@
node_modules/
#VSCode configurations.
.vscode
# NPM/Yarn stuff.
node_modules/
package-lock.json
releasenotes.txt
# Let's not leak any tokens now... That would be very bad
config.json
.env

View File

@ -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);

1492
yarn.lock Normal file

File diff suppressed because it is too large Load Diff