MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / mapRole

Function mapRole

packages/maintenance/src/import-users.ts:30–35  ·  view source on GitHub ↗
(role: SlackRole)

Source from the content-addressed store, hash-verified

28};
29
30const mapRole = (role: SlackRole): Roles => {
31 if (role === 'Admin') return Roles.ADMIN;
32 if (role === 'Owner') return Roles.OWNER;
33 if (role === 'Primary Owner') return Roles.OWNER;
34 return Roles.MEMBER;
35};
36
37const isAdmin = (role: SlackRole): boolean => {
38 if (role === 'Admin') return true;

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected