Potentially fix privacy level assertion error
This commit is contained in:
parent
90579cea28
commit
98f5aeb45a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue