Skip to content

Enhance Discord webhook templates#378

Open
Darkfall48 wants to merge 1 commit intojellyfin:masterfrom
Darkfall48:webhook-discord-template-refresh
Open

Enhance Discord webhook templates#378
Darkfall48 wants to merge 1 commit intojellyfin:masterfrom
Darkfall48:webhook-discord-template-refresh

Conversation

@Darkfall48
Copy link
Copy Markdown

Summary

This PR improves the Discord webhook templates to make notifications clearer and more consistent.

What was done

  • Updated Playback Started and Playback Stopped templates:

    • cleaner layout
    • better formatting of media information
    • added useful details (client, device, play method, runtime)
  • Updated Item Added template:

    • improved readability
    • preserved provider links (IMDb, TMDb, etc.)
    • added better handling for movies, episodes, and music
  • Added a new template:

    • UserAuthStatus.handlebars
    • shows authentication success and failure events
  • Added consistent colors per event:

    • Item Added: #5ba3c2 (blue)
    • Playback Start: #5bc28d (green)
    • Playback Stop: #c25b5b (red)
    • Authentication Status: #AA5CC3 (purple)

Testing

Tested manually with:

  • Item Added
  • Playback Started
  • Playback Stopped
  • Authentication success / failure
  • Movies and episodes

Music was not tested due to no available content.

Preview

Playback Started Playback Stopped
Playback Started Playback Stopped
Item Added Authentication Status
Item Added Authentication Status

Notes

  • Existing functionality was preserved (external links, conditional fields)
  • Templates remain flexible using conditional helpers (if_exist, if_equals)
  • The UserLockedOut.handlebars template was not modified in this PR

Improve the default Discord webhook templates for media and playback notifications, and add a new auth status template.

Changes:
- refresh Item Added, Playback Started, and Playback Stopped templates
- add new UserAuthStatus template
- improve embed titles, layout consistency, and metadata coverage
- add default event colors
- keep optional fields conditional for safer rendering
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.

1 participant