mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
fix: remove check on stage create
This commit is contained in:
@@ -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<StageInstance>(bot.rest, "post", bot.constants.endpoints.STAGE_INSTANCES, {
|
||||
channel_id: channelId.toString(),
|
||||
topic,
|
||||
|
||||
Reference in New Issue
Block a user