Possibly fix discovery-splashes icon get

This commit is contained in:
George Tsatsis 2020-03-31 04:08:56 +03:00
parent bdc576b777
commit 6b14d41c93
No known key found for this signature in database
GPG Key ID: 71F5AD643ABD99A4
1 changed files with 4 additions and 0 deletions

View File

@ -109,3 +109,7 @@ async def _get_guild_banner(guild_id: int, icon_file: str):
icon_hash, ext = splitext_(icon_file) icon_hash, ext = splitext_(icon_file)
return await send_icon("banner", guild_id, icon_hash, ext=ext) return await send_icon("banner", guild_id, icon_hash, ext=ext)
@bp.route("/discovery-splashes/<int:guild_id>/<icon_file>", methods=["GET"])
async def _get_guild_banner(guild_id: int, icon_file: str):
icon_hash, ext = splitext_(icon_file)
return await send_icon("discovery-splash", guild_id, icon_hash, ext=ext)