Skip to main content

Function: getColumnMapping()

function getColumnMapping(guildId): Record<string, string | null>

Retrieves the column mapping for a guild.

This helper returns the map of provider status names to column names (or null for no forum). Returns an empty object if no mappings exist.

Parameters

ParameterTypeDescription
guildIdstringThe Discord guild ID

Returns

Record<string, string | null>

Record mapping provider status names to column names (or null)

Example

const mapping = getColumnMapping(guildId);
// { "QA": "Development", "Blocked": null }