Skip to content

Commit

Permalink
refactor: revert size to 512
Browse files Browse the repository at this point in the history
Signed-off-by: Dorukyum <[email protected]>
  • Loading branch information
Dorukyum authored Aug 27, 2024
1 parent a33d0f0 commit 43b11aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _from_guild_banner(
format = "gif" if animated else "png"
return cls(
state,
url=f"{cls.BASE}/guilds/{guild_id}/users/{member_id}/banners/{banner}.{format}?size=1024",
url=f"{cls.BASE}/guilds/{guild_id}/users/{member_id}/banners/{banner}.{format}?size=512",
key=banner,
animated=animated,
)
Expand Down Expand Up @@ -284,7 +284,7 @@ def _from_user_banner(cls, state, user_id: int, banner_hash: str) -> Asset:
format = "gif" if animated else "png"
return cls(
state,
url=f"{cls.BASE}/banners/{user_id}/{banner_hash}.{format}?size=1024",
url=f"{cls.BASE}/banners/{user_id}/{banner_hash}.{format}?size=512",
key=banner_hash,
animated=animated,
)
Expand Down

0 comments on commit 43b11aa

Please sign in to comment.