🐛 fix: perms plugin - stage type error (#2068)

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
Yaikava
2022-02-25 09:39:25 -05:00
committed by GitHub
co-authored by Skillz4Killz
parent 61f67ea973
commit ac94a3a6c9
+2 -2
View File
@@ -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);
};
}