Exemplo n.º 1
0
        public InvestMember AddInvestigator(SocketGuildUser user, InvestPermissions perms)
        {
            if (IsMOGInvestigation && user.IsMOGSupervisor())
            {
                perms |= InvestPermissions.Full;
            }
            else if (!IsMOGInvestigation && user.IsMOAInspector())
            {
                perms |= InvestPermissions.Full;
            }

            InvestMember newMem = new InvestMember(user, perms);

            user.AddRoleAsync(InvestigationRole);
            Investigators.Add(newMem);
            return(newMem);
        }
Exemplo n.º 2
0
        public void SetLead(SocketGuildUser user)
        {
            var perms = InvestPermissions.Admin;

            if (IsMOGInvestigation && user.IsMOGSupervisor())
            {
                perms = InvestPermissions.Full;
            }
            else if (!IsMOGInvestigation && user.IsMOAInspector())
            {
                perms = InvestPermissions.Full;
            }
            InvestMember newMem      = new InvestMember(user, perms);
            InvestMember currentLead = LeadInvestigator;

            if (currentLead != null)
            {
                Investigators.Remove(currentLead);
            }
            Investigators.Add(newMem);
        }