feat: remove legacy bot code

This commit is contained in:
TrèsAbhi committed 2024-07-21 19:41:37 -05:00
1 parent 9ffd20ffbf
commit 3f83fffade
28 files changed
+5 -589

No files matched your search

-4
View File
@@ -21,9 +21,6 @@ const DOCS: Record<Subcommand, string> = {
export const aboutCommand = new Promise<CommandRegistry>(async (resolve) => {
resolve({
inProduction: true,
inPublic: true,
command: createLocalizedCommand('about', [
{ subcommand: 'commands' },
...subcommands.map((subcommand) => ({ subcommand })),
@@ -37,7 +34,6 @@ export const aboutCommand = new Promise<CommandRegistry>(async (resolve) => {
return t`bot.commands.about.subcommands.commands.body${(
await Promise.all(COMMANDS_RAW)
)
.filter((registry) => registry.inPublic && registry.inProduction)
.sort((a, b) =>
(a.command.name_localizations?.[interaction.locale] ??
a.command.name) <