internal void Update(Model model) { _iconId = model.Icon; IsOwner = model.Owner; Name = model.Name; Permissions = new GuildPermissions(model.Permissions); }
internal static RestUserGuild Create(BaseDiscordClient discord, Model model) { RestUserGuild entity = new RestUserGuild(discord, model.Id); entity.Update(model); return(entity); }