1
0
Fork 0

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

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