Skip to main content

Function: syncSingleCard()

function syncSingleCard(
card,
guild,
provider): Promise<object>

Synchronizes a single roadmap card to Discord and returns thread metadata.

Parameters​

ParameterTypeDescription
cardRoadmapCardThe roadmap card to sync.
guildGuildThe Discord guild to sync to.
providerRoadmapProvider<ProviderConfig>The roadmap provider instance.

Returns​

Promise<object>

Object containing thread ID and URL.

threadId​

threadId: string;

threadUrl​

threadUrl: string;

Throws​

Error if forums not configured, card column not found, or Discord sync fails.

Example​

const { threadId, threadUrl } = await syncSingleCard(newCard, guild, provider);