-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set smaller size for guild icons urls on embed icons #3261
Set smaller size for guild icons urls on embed icons #3261
Conversation
You'll want to aim this PR at the development branch and not the main branch |
Rebased onto |
Signed-off-by: Taku <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! Thanks for the PR, will be merged for the next update.
Perhaps in the future, it would be nice to update all the user/bot avatar URLs that are part of the author and footer as well.
* Set size for guild icons on embeds * Update changelog * Format with black * Fixed incorrect function return type --------- Signed-off-by: Taku <[email protected]> Co-authored-by: Taku <[email protected]>
The guild icon is used in full size on embed footers or the author icon for some messages. This can cause lag on the mobile app if the icon is animated.
This PR introduces a new optional
size
argument toget_guild_icon
and sets the size to 128 when it's used for embed footers or author icons (I chose a conservative value, 64 should render nicely even on higher DPI).