Skip to main content

Function: setColumnMapping()

function setColumnMapping(
guildId,
status,
column): void

Sets a mapping between a provider status name and a column name (or null for no forum).

This helper updates the column mapping for a specific status. The mapping is case-insensitive and matches status names.

Parameters

ParameterTypeDescription
guildIdstringThe Discord guild ID
statusstringThe provider status name (case-insensitive)
columnnull | stringThe column name to map to, or null to track without forum

Returns

void

Example

setColumnMapping(guildId, 'QA', 'Development');  // Map QA to Development
setColumnMapping(guildId, 'Blocked', null); // Track Blocked without forum