mirror of https://gitlab.com/litecord/litecord.git
storage: add allowed_mentions to get_message
This commit is contained in:
parent
4860ae369d
commit
bcb626c024
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
""",
|
||||
|
|
|
|||
Loading…
Reference in New Issue