LogoRobo.js
Packages@robojs/roadmap

syncSingleCard()

Function: syncSingleCard()

function syncSingleCard(
   card, 
   guild, 
   provider): Promise<
  | {
  threadId: string;
  threadUrl: string;
 }
| null>

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< | { threadId: string; threadUrl: string; } | null>

Object containing thread ID and URL, or null if skipped (e.g., archived column).

Throws

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

Example

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

On this page