Skip to content

Instantly share code, notes, and snippets.

@ahadcove
Created January 19, 2022 16:26
Show Gist options
  • Save ahadcove/3487ef2ac140faf955f73e5df25463ad to your computer and use it in GitHub Desktop.
Save ahadcove/3487ef2ac140faf955f73e5df25463ad to your computer and use it in GitHub Desktop.
Lumia Stream Discord Webhook Examples

Basic Webhook JSON Example with username and message variables

{
  "username": "New Chat",
  "avatar_url": "https://i.imgur.com/siMz27i.png",
  "content": "{{username}} said: {{message}}"
}

Basic Webhook JSON Example with custom username, users avatar, and message variables

{
  "username": "[{{username}}] New Chat",
  "avatar_url": "{{avatar}}",
  "content": "{{username}} said: {{message}}"
}

Text to speech

{
  "username": "New Chat",
  "avatar_url": "https://i.imgur.com/siMz27i.png",
  "content": "{{message}}",
  "tts": true
}

New Spotify song (Use in Alerts > Spotify > Switch Song > Advanced > Lumia Actions > Send To Webhook (JSON)

{
  "username": "Spotify",
  "avatar_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Spotify_logo_without_text.svg/200px-Spotify_logo_without_text.svg.png",
  "embeds": [{
    "color": 2021216,
    "title": "New song started!",
    "thumbnail": {
      "url": "{{spotify_now_playing_image}}"
    },
    "fields":[
      {
        "name": "Track",
        "value": "[{{spotify_now_playing_song}}]({{spotify_now_playing_url}})",
        "inline": true
      },
      {
        "name": "Artist",
        "value": "{{spotify_now_playing_artist}}",
        "inline": true
      }
    ]
  }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment