code: func eventsMap(t string) (interface{}, bool) {
  	// Must parse EventsAPI FIRST as both RTM and EventsAPI
  	// have a type: "Message" event.
  	// TODO: Handle these cases more explicitly.
  	v, exists := EventsAPIInnerEventMapping[t]
  	if exists {
  		return v, exists
  	}
  	v, exists = slack.EventMapping[t]
  	if exists {
  		return v, exists
  	}
  	return v, exists
  }
docs: // eventsMap checks both slack.EventsMapping and
  // and slackevents.EventsAPIInnerEventMapping. If the event
  // exists, returns the the unmarshalled struct instance of
  // target for the matching event type.
  // TODO: Consider moving all events into its own package?