예제 #1
0
 public static StaffMember GetOrCreateStaffMember(IGuildUser user)
 {
     if (StaffMemberExists(user.Id))
     {
         return(StaffMemberCollection.Find(x => x.Id == user.Id).First());
     }
     else
     {
         return(new StaffMember(user));
     }
 }
예제 #2
0
        public static StaffMember GetStaffMember(ulong id)
        {
            var f = StaffMemberCollection.Find(x => x.Id == id);

            if (f.Any())
            {
                return(f.First());
            }
            else
            {
                return(null);
            }
        }