public void Update(SetCharacterRestrictionsMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     Restrictions = msg.restrictions;
 }
 public static void HandleSetCharacterRestrictionsMessage(Bot bot, SetCharacterRestrictionsMessage message)
 {
     if (bot.Character != null)
         bot.Character.Update(message);
 }