Add default avatar in discord notifications #5890
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
❗ Important Announcement
Click here for more details:
🚧 Temporary Delay in Feature Requests and Pull Request Reviews
At this time, we may be slower to respond to new feature requests and review pull requests. Existing requests and PRs will remain in the backlog but may not be prioritized immediately.
We appreciate your patience and understanding as we continue to improve Uptime Kuma.
🚫 Please Avoid Unnecessary Pinging of Maintainers
We kindly ask you to refrain from pinging maintainers unless absolutely necessary. Pings are reserved for critical/urgent pull requests that require immediate attention.
Why: Reserving pings for urgent matters ensures maintainers can prioritize critical tasks effectively.
📋 Overview
Provide a clear summary of the purpose and scope of this pull request:
What problem does this pull request address?
The solution is to check whether an avatar image is defined in the Discord webhook payload.
If no avatar is defined by the user, we will set the default Uptime Kuma image as the avatar.
If the user has defined a custom avatar in the webhook settings, we will respect their choice and keep their custom image.
🔄 Changes
🛠️ Type of change
🔗 Related Issues
📄 Checklist *
📷 Screenshots or Visual Changes
Avatar not set


avatar set


ℹ️ Additional Context
Provide any relevant details to assist reviewers in understanding the changes.
Click here for more details:
Key Considerations:
Provide details here
💬 Requested Feedback
Mention documents needing feedback here