From 98f5aeb45a6cb6c3e413ce3d3b6d0f4fef375fd9 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 12 Oct 2023 22:32:28 +1300 Subject: [PATCH] Potentially fix privacy level assertion error --- d2m/actions/create-room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2m/actions/create-room.js b/d2m/actions/create-room.js index bee45e2..d1e1416 100644 --- a/d2m/actions/create-room.js +++ b/d2m/actions/create-room.js @@ -89,7 +89,7 @@ async function channelToKState(channel, guild) { const spaceID = await createSpace.ensureSpace(guild) assert(typeof spaceID === "string") const privacyLevel = select("guild_space", "privacy_level", {space_id: spaceID}).pluck().get() - assert(privacyLevel) + assert(typeof privacyLevel === "number") const row = select("channel_room", ["nick", "custom_avatar"], {channel_id: channel.id}).get() const customName = row?.nick