Skip to main content

Function: setSyncedPost()

function setSyncedPost(
guildId,
cardId,
threadId): void

Records a synced post mapping between a provider card and Discord thread.

This helper updates just the synced posts mapping without affecting other settings. It's used after successfully creating or updating a forum post to track the relationship.

Parameters

ParameterTypeDescription
guildIdstringThe Discord guild ID
cardIdstringThe provider card ID (e.g., "PROJ-123")
threadIdstringThe Discord thread ID

Returns

void

Example

// After creating a forum post
const thread = await forumChannel.threads.create({...});
setSyncedPost(guildId, jiraIssue.key, thread.id);