def validate(self, command, token, team_id, method):
if (team_id, command) not in self._commands:<EOL><INDENT>raise SlackError('<STR_LIT>'.format(<EOL>command, team_id))<EOL><DEDENT>func, _token, methods, kwargs = self._commands[(team_id, command)]<EOL>if method not in methods:<EOL><INDENT>raise SlackError('<STR_LIT>'.format(method))<EOL><DEDENT>if token != _token:<EOL><INDENT>raise SlackError('<STR_LIT>'.format(token))<EOL><DEDENT>
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