MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / lookupSlackUserName

Function lookupSlackUserName

server/src/addie/handler.ts:135–144  ·  view source on GitHub ↗

* Look up a Slack user's name by their Slack user ID

(slackUserId: string)

Source from the content-addressed store, hash-verified

133 * Look up a Slack user's name by their Slack user ID
134 */
135async function lookupSlackUserName(slackUserId: string): Promise<string | null> {
136 if (!slackDb) return null;
137 try {
138 const mapping = await slackDb.getBySlackUserId(slackUserId);
139 return mapping?.slack_real_name || mapping?.slack_display_name || null;
140 } catch (error) {
141 logger.warn({ error, slackUserId }, 'Failed to look up Slack user name');
142 return null;
143 }
144}
145
146/**
147 * Initialize Addie

Callers

nothing calls this directly

Calls 2

getBySlackUserIdMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected