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

Add User avatar_decoration #1019

Merged
merged 3 commits into from
Jul 22, 2023
Merged

Add User avatar_decoration #1019

merged 3 commits into from
Jul 22, 2023

Conversation

SQKo
Copy link
Member

@SQKo SQKo commented Dec 13, 2022

key2peace
key2peace previously approved these changes Dec 13, 2022
@SQKo SQKo requested a review from a team December 14, 2022 06:16
@SQKo SQKo added the wait for discord Waiting for release by discord label Dec 14, 2022
@SQKo
Copy link
Member Author

SQKo commented Dec 14, 2022

This only returned in new clients at the moment, not for bots (field exists but always null). So waiting for release.

key2peace
key2peace previously approved these changes Dec 15, 2022
if (! in_array(strtolower($format), $allowed)) {
$format = 'png';
}
} elseif (strpos($this->attributes['avatar_decoration'], 'a_') === 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the default is png whether its animated or not. Wouldn't it make more sense to change the input to string $format = 'png' rather than have these checks?

@key2peace key2peace removed the wait for discord Waiting for release by discord label Jul 22, 2023
@SQKo SQKo merged commit 960a852 into discord-php:master Jul 22, 2023
@SQKo SQKo deleted the patch-153 branch July 22, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants