blueprints.channels: add dummy search route

This commit is contained in:
Luna Mendes 2018-09-28 20:08:07 -03:00
parent 02f2ee6943
commit 993a2f3b08
1 changed files with 14 additions and 0 deletions

View File

@ -453,3 +453,17 @@ async def create_ban(guild_id, member_id):
}, **(await app.storage.get_user(member_id))}) }, **(await app.storage.get_user(member_id))})
return '', 204 return '', 204
@bp.route('/<int:guild_id>/messages/search')
async def search_messages(guild_id):
user_id = await token_check()
await guild_check(user_id, guild_id)
# TODO: implement route
return jsonify({
'total_results': 0,
'messages': [],
'analytics_id': 'ass',
})