From 9d6d893373b5b977d70e39d652bfbf3322b5fc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 9 Mar 2024 12:02:17 -0600 Subject: [PATCH] feat: removed preview commands --- .../interactionCreate/handlers/chatInputCommand.ts | 14 -------------- src/events/interactionCreate/index.ts | 1 - 2 files changed, 15 deletions(-) diff --git a/src/events/interactionCreate/handlers/chatInputCommand.ts b/src/events/interactionCreate/handlers/chatInputCommand.ts index e056cbbc2..a5842327b 100644 --- a/src/events/interactionCreate/handlers/chatInputCommand.ts +++ b/src/events/interactionCreate/handlers/chatInputCommand.ts @@ -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); diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index 3b3e8293e..5e18ebfd6 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -54,7 +54,6 @@ export type InteractionReturnable = interface CommandRegistryBase { inProduction: boolean; inPublic: boolean; - inPreview?: boolean; command: | SlashCommandBuilder