コード例 #1
0
 internal void Update(Model model)
 {
     _iconId     = model.Icon;
     IsOwner     = model.Owner;
     Name        = model.Name;
     Permissions = new GuildPermissions(model.Permissions);
 }
コード例 #2
0
        internal static RestUserGuild Create(BaseDiscordClient discord, Model model)
        {
            RestUserGuild entity = new RestUserGuild(discord, model.Id);

            entity.Update(model);
            return(entity);
        }