def validate(self, command, token, team_id, method):
        """Validate request queries with registerd commands

        :param command: command parameter from request
        :param token: token parameter from request
        :param team_id: team_id parameter from request
        :param method: the request method
        """
        if (team_id, command) not in self._commands:
            raise SlackError('Command {0} is not found in team {1}'.format(
                             command, team_id))

        func, _token, methods, kwargs = self._commands[(team_id, command)]

        if method not in methods:
            raise SlackError('{} request is not allowed'.format(method))

        if token != _token:
            raise SlackError('Your token {} is invalid'.format(token))
Validate request queries with registerd commands

        :param command: command parameter from request
        :param token: token parameter from request
        :param team_id: team_id parameter from request
        :param method: the request method