Skip to content
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

Merged
merged 6 commits into from
Jul 15, 2023
Merged

Set smaller size for guild icons urls on embed icons #3261

merged 6 commits into from
Jul 15, 2023

Conversation

baptiste0928
Copy link
Contributor

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 to get_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).

@StephenDaDev
Copy link
Member

You'll want to aim this PR at the development branch and not the main branch

@baptiste0928 baptiste0928 changed the base branch from master to development March 20, 2023 06:36
@baptiste0928
Copy link
Contributor Author

You'll want to aim this PR at the development branch and not the main branch

Rebased onto development, thanks for noticing.

Copy link
Collaborator

@Taaku18 Taaku18 left a 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.

@Taaku18 Taaku18 added staged Staged for next version and removed pending review labels Jul 12, 2023
@Taaku18 Taaku18 merged commit 5ddb4e0 into modmail-dev:development Jul 15, 2023
2 checks passed
@baptiste0928 baptiste0928 deleted the feat/guild-icon-size branch July 15, 2023 12:11
@Taaku18 Taaku18 mentioned this pull request Jul 15, 2023
raidensakura pushed a commit to raidensakura/modmail that referenced this pull request Apr 10, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staged Staged for next version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants