Integrations

Change Discord

PATCH/api/integrations/discord
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

A Discord webhook that posts what plays, scene changes and Twitch events.

Request body application/json

webhookstring

"" removes it.

usernamestring
nowPlayingboolean
scenesboolean
twitchboolean

Responses

200OKapplication/json
object

The Discord settings and status.

400The body isn't valid JSON, or a value is wrong.application/json
errorstringrequired

What went wrong, in a sentence for people.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X PATCH 'http://localhost:8080/api/integrations/discord' \
  -H 'content-type: application/json' \
  -d '{
  "webhook": "https://discord.com/api/webhooks/123/abc",
  "nowPlaying": true
}'
Response
{}
Edit on GitHub