storage: add allowed_mentions to get_message

This commit is contained in:
Luna 2021-09-05 00:36:37 -03:00
parent 4860ae369d
commit bcb626c024
2 changed files with 3 additions and 1 deletions

View File

@ -131,6 +131,7 @@ async def msg_guild_text_mentions(
payload: dict, guild_id: int, mentions_everyone: bool, mentions_here: bool
):
"""Calculates mention data side-effects."""
# TODO this should be aware of allowed_mentions
channel_id = int(payload["channel_id"])
# calculate the user ids we'll bump the mention count for

View File

@ -1018,7 +1018,8 @@ class Storage:
"""
SELECT id::text, channel_id::text, author_id, content,
created_at AS timestamp, edited_at AS edited_timestamp,
tts, mention_everyone, nonce, message_type, embeds, flags, message_reference
tts, mention_everyone, nonce, message_type, embeds, flags,
message_reference, allowed_mentions
FROM messages
WHERE id = $1
""",