LogoRobo.js
Packages@robojs/roadmap

moveThreadToNewForum()

Function: moveThreadToNewForum()

function moveThreadToNewForum(
   card, 
   existingThread, 
   targetForum, 
   appliedTags, 
guildId): Promise<ThreadChannel>

Moves a roadmap card's discussion thread to a new forum when the column changes.

Creates a replacement thread in the destination forum, optionally links to the previous discussion when meaningful user activity exists, locks/archives the old thread, updates synced post mappings, and records a thread history entry.

Parameters

ParameterTypeDescription
cardRoadmapCardThe roadmap card associated with the thread.
existingThreadThreadChannel<boolean>The thread that needs to be moved.
targetForumForumChannelThe destination forum channel.
appliedTagsstring[]Tag IDs to apply to the new thread.
guildIdstringGuild ID for settings persistence.

Returns

Promise<ThreadChannel>

The newly created thread in the destination forum.

Throws

If required Discord references are missing or thread creation fails.

Example

await moveThreadToNewForum(card, oldThread, newForum, appliedTags, guildId)

On this page