( account: Pick<accounts, 'slackTeamId' | 'discordServerId'> )
| 23 | }; |
| 24 | |
| 25 | function 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 | |
| 33 | function getCommunityName( |
| 34 | account: Pick<accounts, 'slackDomain' | 'discordDomain' | 'discordServerId'> |
no outgoing calls
no test coverage detected