Skip to content

Instantly share code, notes, and snippets.

@anthonylavado
Created June 24, 2024 16:27
Show Gist options
  • Save anthonylavado/aa6627298b2eda7d1fc9acb178a5cc4c to your computer and use it in GitHub Desktop.
Save anthonylavado/aa6627298b2eda7d1fc9acb178a5cc4c to your computer and use it in GitHub Desktop.
Discord Playback Event
{
"content": "{{MentionType}}",
"avatar_url": "{{ServerUrl}}/Users/{{UserId}}/Images/Primary",
"username": "{{BotUsername}}",
"embeds": [
{
"author": {
{{#if_equals ItemType 'Episode'}}
"name": "Playback Started • {{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} ~ {{{Name}}}",
{{else}}
"name": "Playback Started • {{{Name}}} ({{Year}})",
{{/if_equals}}
"url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}"
},
"thumbnail":{
"url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
},
"description": "> {{{Overview}}}\n\n``[{{PlaybackPosition}}/{{RunTime}}]``",
"color": "3394611",
"footer": {
"text": "{{{ServerName}}}",
"icon_url": "{{AvatarUrl}}"
},
"fields": [
{
"name": "User",
"value": "{{{NotificationUsername}}}",
"inline": true
}
],
"timestamp": "{{Timestamp}}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment