bot/exts/filter.py
def match_filter_patterns(self, content: str, guild_id: int) -> Optional[typing.Tuple[re.Match, str]]:
        """Try to find matches between registered filter patterns with a message."""
        for pattern, pattern_identifier in self._filter_cache[guild_id].items():
            if search := pattern.search(content):
                return search, pattern_identifier
Try to find matches between registered filter patterns with a message.
Try to find matches between registered filter patterns with a message.
Try to find matches between registered filter patterns with a message .
def match_filter_patterns(self, content: str, guild_id: int) -> Optional[typing.Tuple[re.Match, str]]:
        for pattern, pattern_identifier in self._filter_cache[guild_id].items():
            if search := pattern.search(content):
                return search, pattern_identifier
def match_filter_patterns ( self , content : str , guild_id : int ) -> Optional [ typing . Tuple [ re . Match , str ] ] : for pattern , pattern_identifier in self . _filter_cache [ guild_id ] . items ( ) : if search := pattern . search ( content ) : return search , pattern_identifier
Try to find matches between registered filter patterns with a message.
Try to find matches between registered filter patterns with a message .
"""Try to find matches between registered filter patterns with a message."""
self
content
str
guild_id
int