MCPcopy Create free account
hub / github.com/dailydotdev/apps / isSystemModerator

Function isSystemModerator

packages/shared/src/lib/user.ts:21–23  ·  view source on GitHub ↗
(user?: { roles?: Roles[] })

Source from the content-addressed store, hash-verified

19}
20
21export const isSystemModerator = (user?: { roles?: Roles[] }): boolean => {
22 return user?.roles?.includes(Roles.Moderator) ?? false;
23};
24
25export interface UserSocialLink {
26 platform: string;

Callers 2

SquadMemberMenuFunction · 0.90
SquadMembersListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected