Potentially fix privacy level assertion error

This commit is contained in:
Cadence Ember 2023-10-12 22:32:28 +13:00
parent 90579cea28
commit 98f5aeb45a
1 changed files with 1 additions and 1 deletions

View File

@ -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