|
|
@ -173,13 +173,13 @@ class Message: |
|
|
|
} |
|
|
|
|
|
|
|
transformations.update(mention_transforms) |
|
|
|
transformations[re.escape('@everyone')] = '@\u200beveryone' |
|
|
|
|
|
|
|
def repl(obj): |
|
|
|
return transformations.get(re.escape(obj.group(0)), '') |
|
|
|
|
|
|
|
pattern = re.compile('|'.join(transformations.keys())) |
|
|
|
return pattern.sub(repl, self.content) |
|
|
|
result = pattern.sub(repl, self.content) |
|
|
|
return result.replace('@everyone', '@\u200beveryone') |
|
|
|
|
|
|
|
def _handle_upgrades(self, channel_id): |
|
|
|
self.server = None |
|
|
|