func (d *Dispatch) alwaysListenToChans() {
	go func() {
		stop := false
		for {
			select {
			case <-d.allChan:
			case <-d.readyChan:
			case <-d.resumedChan:
			case <-d.channelCreateChan:
			case <-d.channelDeleteChan:
			case <-d.channelPinsUpdateChan:
			case <-d.channelUpdateChan:
			case <-d.guildBanAddChan:
			case <-d.guildBanRemoveChan:
			case <-d.guildCreateChan:
			case <-d.guildDeleteChan:
			case <-d.guildEmojisUpdateChan:
			case <-d.guildIntegrationsUpdateChan:
			case <-d.guildMemberAddChan:
			case <-d.guildMemberRemoveChan:
			case <-d.guildMemberUpdateChan:
			case <-d.guildMembersChunkChan:
			case <-d.guildRoleCreateChan:
			case <-d.guildRoleDeleteChan:
			case <-d.guildRoleUpdateChan:
			case <-d.guildUpdateChan:
			case <-d.messageCreateChan:
			case <-d.messageDeleteBulkChan:
			case <-d.messageDeleteChan:
			case <-d.messageReactionAddChan:
			case <-d.messageReactionRemoveAllChan:
			case <-d.messageReactionRemoveChan:
			case <-d.messageUpdateChan:
			case <-d.presenceUpdateChan:
			case <-d.presencesReplaceChan:
			case <-d.typingStartChan:
			case <-d.userUpdateChan:
			case <-d.voiceStateUpdateChan:
			case <-d.voiceServerUpdateChan:
			case <-d.webhooksUpdateChan:
			case <-d.shutdown:
				stop = true
			}

			if stop {
				break
			}
		}
	}()
}
// alwaysListenToChans makes sure no deadlocks occure
alwaysListenToChans makes sure no deadlocks occure
// alwaysListenToChans makes sure no deadlocks occure
func (d *Dispatch) alwaysListenToChans() {
	go func() {
		stop := false
		for {
			select {
			case <-d.allChan:
			case <-d.readyChan:
			case <-d.resumedChan:
			case <-d.channelCreateChan:
			case <-d.channelDeleteChan:
			case <-d.channelPinsUpdateChan:
			case <-d.channelUpdateChan:
			case <-d.guildBanAddChan:
			case <-d.guildBanRemoveChan:
			case <-d.guildCreateChan:
			case <-d.guildDeleteChan:
			case <-d.guildEmojisUpdateChan:
			case <-d.guildIntegrationsUpdateChan:
			case <-d.guildMemberAddChan:
			case <-d.guildMemberRemoveChan:
			case <-d.guildMemberUpdateChan:
			case <-d.guildMembersChunkChan:
			case <-d.guildRoleCreateChan:
			case <-d.guildRoleDeleteChan:
			case <-d.guildRoleUpdateChan:
			case <-d.guildUpdateChan:
			case <-d.messageCreateChan:
			case <-d.messageDeleteBulkChan:
			case <-d.messageDeleteChan:
			case <-d.messageReactionAddChan:
			case <-d.messageReactionRemoveAllChan:
			case <-d.messageReactionRemoveChan:
			case <-d.messageUpdateChan:
			case <-d.presenceUpdateChan:
			case <-d.presencesReplaceChan:
			case <-d.typingStartChan:
			case <-d.userUpdateChan:
			case <-d.voiceStateUpdateChan:
			case <-d.voiceServerUpdateChan:
			case <-d.webhooksUpdateChan:
			case <-d.shutdown:
				stop = true
			}
			if stop {
				break
			}
		}
	}()
}
func ( d * Dispatch ) alwaysListenToChans ( ) { go func ( ) { stop := false for { select { case <- d . allChan : case <- d . readyChan : case <- d . resumedChan : case <- d . channelCreateChan : case <- d . channelDeleteChan : case <- d . channelPinsUpdateChan : case <- d . channelUpdateChan : case <- d . guildBanAddChan : case <- d . guildBanRemoveChan : case <- d . guildCreateChan : case <- d . guildDeleteChan : case <- d . guildEmojisUpdateChan : case <- d . guildIntegrationsUpdateChan : case <- d . guildMemberAddChan : case <- d . guildMemberRemoveChan : case <- d . guildMemberUpdateChan : case <- d . guildMembersChunkChan : case <- d . guildRoleCreateChan : case <- d . guildRoleDeleteChan : case <- d . guildRoleUpdateChan : case <- d . guildUpdateChan : case <- d . messageCreateChan : case <- d . messageDeleteBulkChan : case <- d . messageDeleteChan : case <- d . messageReactionAddChan : case <- d . messageReactionRemoveAllChan : case <- d . messageReactionRemoveChan : case <- d . messageUpdateChan : case <- d . presenceUpdateChan : case <- d . presencesReplaceChan : case <- d . typingStartChan : case <- d . userUpdateChan : case <- d . voiceStateUpdateChan : case <- d . voiceServerUpdateChan : case <- d . webhooksUpdateChan : case <- d . shutdown : stop = true } if stop { break } } } ( ) }
alwaysListenToChans makes sure no deadlocks occure
alwaysListenToChans makes sure no deadlocks occure