         @teamRoute() + '/channels/' + channelId
 
     teamRoute: ->
-        teamsRoute + '/' + @teamID
+        usersRoute + '/me/teams/' + @teamID
 
     getMe: ->
         @_apiCall 'GET', usersRoute + '/me', null, @_onMe


apiPrefix = '/api/v4'
usersRoute = '/users'
teamsRoute = '/teams'
messageMaxRunes = 4000

tlsverify = !(process.env.MATTERMOST_TLS_VERIFY or '').match(/^false|0|no|off$/i)


    loadUsersList: ->
        # Load userlist
        @_apiCall 'GET', @teamRoute() + '/members', null, @_onProfiles
        @_apiCall 'GET', @channelRoute(''), null, @_onChannels


