code: func (c *Callbacks) OnCUserMessageTrain(fn func(*dota.CUserMessageTrain) error) {
  	c.onCUserMessageTrain = append(c.onCUserMessageTrain, fn)
  }
docs: // OnCUserMessageTrain registers a callback for EBaseUserMessages_UM_Train