From ac94a3a6c9bd5e40e0a3c744e520c0c2a74195de Mon Sep 17 00:00:00 2001 From: Yaikava <83710104+Yaikava@users.noreply.github.com> Date: Fri, 25 Feb 2022 14:39:25 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20perms=20plugin=20-=20stag?= =?UTF-8?q?e=20type=20error=20(#2068)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> --- plugins/permissions/src/channels/stage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/permissions/src/channels/stage.ts b/plugins/permissions/src/channels/stage.ts index 06f86de31..a8f2db218 100644 --- a/plugins/permissions/src/channels/stage.ts +++ b/plugins/permissions/src/channels/stage.ts @@ -4,7 +4,7 @@ import { requireBotChannelPermissions } from "../permissions.ts"; export function createStageInstance(bot: BotWithCache) { const createStageInstanceOld = bot.helpers.createStageInstance; - bot.helpers.createStageInstance = async function (channelId, topic, privacyLevel) { + bot.helpers.createStageInstance = async function (channelId, topic) { if (!bot.utils.validateLength(topic, { max: 120, min: 1 })) { throw new Error( "The topic length for creating a stage instance must be between 1-120.", @@ -17,7 +17,7 @@ export function createStageInstance(bot: BotWithCache) { "MOVE_MEMBERS", ]); - return await createStageInstanceOld(channelId, topic, privacyLevel); + return await createStageInstanceOld(channelId, topic); }; }