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); }
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); }