From c697f2fd6a46de90f79872e6830417033f326deb Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sat, 4 Dec 2021 16:22:33 +0000 Subject: [PATCH] fix: remove check on stage create --- src/helpers/channels/createStageInstance.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/helpers/channels/createStageInstance.ts b/src/helpers/channels/createStageInstance.ts index abbedc881..685d6249b 100644 --- a/src/helpers/channels/createStageInstance.ts +++ b/src/helpers/channels/createStageInstance.ts @@ -4,10 +4,6 @@ import { PrivacyLevel } from "../../types/channels/privacyLevel.ts"; /** Creates a new Stage instance associated to a Stage channel. Requires the user to be a moderator of the Stage channel. */ export async function createStageInstance(bot: Bot, channelId: bigint, topic: string, privacyLevel?: PrivacyLevel) { - if (!bot.utils.validateLength(topic, { max: 120, min: 1 })) { - throw new Error(bot.constants.Errors.INVALID_TOPIC_LENGTH); - } - const result = await bot.rest.runMethod(bot.rest, "post", bot.constants.endpoints.STAGE_INSTANCES, { channel_id: channelId.toString(), topic,