From 6eb51bb87229c6f427bea6a1e8e5552f36a9ad2d Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 20 Jun 2019 17:34:11 -0300 Subject: [PATCH] add (non-functional) suppress-embeds route --- litecord/blueprints/channels.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index 771fbfd..15efab7 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -611,3 +611,12 @@ async def _search_channel(channel_id): """, channel_id, j['offset'], j['content']) return jsonify(await search_result_from_list(rows)) + + +@bp.route('//messages//suppress-embeds') +async def suppress_embeds(channel_id: int, message_id: int): + """Toggle the embeds in a message.""" + j = validate({'suppress': {'type': 'boolean'}}, + await request.get_json()) + + # TODO