예제 #1
0
        internal static RestGuildDiscovery Create(Model model)
        {
            RestGuildDiscovery entity = new RestGuildDiscovery();

            entity.Update(model);
            return(entity);
        }
예제 #2
0
 internal void Update(Model model)
 {
     GuildId                     = model.GuildId;
     PrimaryCategoryId           = model.PrimaryCategoryId;
     Keywords                    = model.Keywords ?? new string[0] {
     };
     EmojiDiscoverabilityEnabled = model.EmojiDiscoverabilityEnabled;
     CategoryIds                 = model.Categories ?? new int[0] {
     };
     _partnerActioned            = model.PartnerActionedTimestamp.HasValue ? model.PartnerActionedTimestamp.Value.UtcTicks : 0;
     _partnerApplied             = model.PartnerAppliedTimestamp.HasValue ? model.PartnerAppliedTimestamp.Value.UtcTicks : 0;
 }