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

Function getSlackUser

server/src/slack/client.ts:236–246  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

234 * Get a single user by ID
235 */
236export async function getSlackUser(userId: string): Promise<SlackUser | null> {
237 try {
238 const response = await slackRequest<{ user: SlackUser }>('users.info', {
239 user: userId,
240 });
241 return response.user;
242 } catch (error) {
243 logger.error({ error, userId }, 'Failed to get Slack user');
244 return null;
245 }
246}
247
248/**
249 * Result from resolving a Slack user's display name

Callers 7

handleAppMentionFunction · 0.85
indexChannelMessageFunction · 0.85
handleActiveThreadReplyFunction · 0.85
handleChannelMessageFunction · 0.85
getUserDisplayNameFunction · 0.85
indexMessageForSearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected