Function: syncSingleCard()
function syncSingleCard(
card,
guild,
provider): Promise<object>
Synchronizes a single roadmap card to Discord and returns thread metadata.
Parameters
| Parameter | Type | Description |
|---|---|---|
card | RoadmapCard | The roadmap card to sync. |
guild | Guild | The Discord guild to sync to. |
provider | RoadmapProvider<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);