(self, args, message: EventMessage)
return True
Does a message match the given search criteria?
Does a message match the given search criteria?
Does a message match the given search criteria?
def match_message(self, args, message: EventMessage) -> bool:
        """Does a message match the given search criteria?"""
        if args.id and args.id != message.id:
            return False

        if args.native_id and args.native_id != message.native_id:
            return False

        if args.event and not self.wildcard_match(args.event, message.event_name):
            return False

        if args.json_path and not self.json_match(args.json_path, message.kwargs):
            return False

        if args.version and not self.version_match(args.json, message.version):
            return False

        return True
def match_message ( self , args , message : EventMessage ) -> bool : if args . id and args . id != message . id : return False if args . native_id and args . native_id != message . native_id : return False if args . event and not self . wildcard_match ( args . event , message . event_name ) : return False if args . json_path and not self . json_match ( args . json_path , message . kwargs ) : return False if args . version and not self . version_match ( args . json , message . version ) : return False return True