Don't archive threads that are part of a forum
This commit is contained in:
parent
639912fee3
commit
65498e6cd1
1 changed files with 4 additions and 1 deletions
|
@ -528,7 +528,10 @@ async function _syncSpaceMember(channel, spaceID, roomID, guild_id) {
|
|||
let spaceEventContent = {}
|
||||
if (
|
||||
channel.type !== DiscordTypes.ChannelType.PrivateThread // private threads do not belong in the space (don't offer people something they can't join)
|
||||
&& !channel["thread_metadata"]?.archived // archived threads do not belong in the space (don't offer people conversations that are no longer relevant)
|
||||
&& (
|
||||
!channel["thread_metadata"]?.archived // archived threads do not belong in the space (don't offer people conversations that are no longer relevant)
|
||||
|| discord.channels.get(channel.parent_id || "")?.type === DiscordTypes.ChannelType.GuildForum
|
||||
)
|
||||
) {
|
||||
spaceEventContent = {
|
||||
via: [reg.ooye.server_name]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue