zRuvixDiscord presence API

now_playing & Music

One normalized music object across Spotify and YouTube Music, plus dedicated source fields.

now_playing

A single, source-agnostic music object that normalizes whatever the user is listening to. It is null when nothing is playing.

Prop

Type

Compute live progress as (now - timestamps.start) / duration_ms.

Spotify & YouTube Music

Alongside now_playing, dedicated fields are provided for each source (matching Lanyard for Spotify):

  • listening_to_spotify (bool) & spotify (object | null) — detected by activity id spotify:1.
  • listening_to_youtube_music (bool) & youtube_music (object | null) — detected by activity name YouTube Music.

Also in activities

The raw activity also remains in the activities array, so each appears both as a dedicated field and as a normal activity.

On this page