fix(bot): 🐛 Edits not working when the new content has mentions.

This commit is contained in:
Nyeki.py
2024-10-27 01:49:16 -03:00
parent 85a437e3e6
commit 6350f9db4f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1010,7 +1010,7 @@ class Calls(base.Cog):
call_rss = await models.CallUserChannelRelationship.filter( call_rss = await models.CallUserChannelRelationship.filter(
call_id=channel.call_id call_id=channel.call_id
) ).select_related("profile")
cleaned_content = formatting.clean(original_message, call_rss) cleaned_content = formatting.clean(original_message, call_rss)
+2 -1
View File
@@ -159,7 +159,8 @@ def clean(
Args: Args:
message (discord.Message): The message to clean. message (discord.Message): The message to clean.
call_rss (list[models.CallUserChannelRelationship]): The call's relationships. call_rss (list[models.CallUserChannelRelationship]): The call's relationships. They must
have pre-selected their `profile` relation.
Returns: Returns:
str: The cleaned message content. str: The cleaned message content.