feat: removed preview commands

This commit is contained in:
TrèsAbhi committed 2024-03-09 12:02:17 -06:00
1 parent 9840982aa2
commit 9d6d893373
2 files changed
-15

No files matched your search

@@ -8,7 +8,6 @@ import {
InteractionReplyOptions,
} from 'discord.js';
import { commands } from '..';
import discord from '../../../../discord.json' assert { type: 'json' };
import buttonLink from '../../../core/discord/buttonLink';
import embedWarning from '../../../core/discord/embedWarning';
import normalizeInteractionReturnable from '../../../core/discord/normalizeInteractionReturnable';
@@ -24,19 +23,6 @@ export default async function handleChatInputCommand(
await interaction.deferReply();
if (registry.inPreview && interaction.guildId !== discord.tres_guild_id) {
interaction.editReply({
embeds: [
embedWarning(
`\`/${registry.command.name}\` is in Public Preview`,
'[Join the official Discord server](https://discord.gg/nDt7AjGJQH) to gain early access to this command before it is released to the public.',
),
],
});
return;
}
try {
const returnable = await registry.handler(interaction);
-1
View File
@@ -54,7 +54,6 @@ export type InteractionReturnable =
interface CommandRegistryBase {
inProduction: boolean;
inPublic: boolean;
inPreview?: boolean;
command:
| SlashCommandBuilder