public static StaffMember GetOrCreateStaffMember(IGuildUser user) { if (StaffMemberExists(user.Id)) { return(StaffMemberCollection.Find(x => x.Id == user.Id).First()); } else { return(new StaffMember(user)); } }
public static StaffMember GetStaffMember(ulong id) { var f = StaffMemberCollection.Find(x => x.Id == id); if (f.Any()) { return(f.First()); } else { return(null); } }