Add documented endpoint back

This commit is contained in:
gabixdev 2018-12-03 01:52:36 +01:00
parent 0ac0fb6ea1
commit 9b0171ad32
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ async def _update_guild(guild_id):
return jsonify(guild)
@bp.route('/<int:guild_id>/delete', methods=['POST'])
@bp.route('/<int:guild_id>', methods=['DELETE'])
@bp.route('/<int:guild_id>/delete', methods=['POST']) # this one is not actually documented, but it's used by Discord client
async def delete_guild(guild_id):
"""Delete a guild."""
user_id = await token_check()