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

Function getCommunityType

packages/serializers/src/settings.ts:25–31  ·  view source on GitHub ↗
(
  account: Pick<accounts, 'slackTeamId' | 'discordServerId'>
)

Source from the content-addressed store, hash-verified

23};
24
25function getCommunityType(
26 account: Pick<accounts, 'slackTeamId' | 'discordServerId'>
27) {
28 if (account.discordServerId) return CommunityType.discord;
29 if (account.slackTeamId) return CommunityType.slack;
30 else return CommunityType.linen;
31}
32
33function getCommunityName(
34 account: Pick<accounts, 'slackDomain' | 'discordDomain' | 'discordServerId'>

Callers 2

getCommunityUrlFunction · 0.85
serializeSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected