Skip to content

1.9.91

Choose a tag to compare

@github-actions github-actions released this 30 Apr 19:37
· 2 commits to main since this release
v1.9.9.1 — Hyperlink Fields

Discord supports turning Details, State, and the Large/Small image into
clickable links — not just the two preset buttons. This release exposes
that as a subtle 🔗 toggle next to each of those four fields.

Implementation:
- Added detailsUrl, stateUrl, largeImageUrl, smallImageUrl to FIELD_KEYS
  and the newProfile() defaults so they round-trip cleanly through
  MultiRP's native JSON exports. CustomRP's .crp format predates these
  fields and silently drops them on export.
- Rebuilt buildActivity() to emit Discord's wire-spec activity object
  directly (nested timestamps/assets, snake_case keys, plus the new
  details_url / state_url / assets.large_url / assets.small_url
  fields). discord-rpc 4.0.1 strips unknown fields inside its
  setActivity() wrapper, so we bypass it and call
  client.request('SET_ACTIVITY', ...) ourselves to pass our payload
  straight through to Discord.
- UI: a small 🔗 button next to the field label expands an inline
  https:// URL input below it. The toggle highlights when a URL is set.
  Existing fields and layout are otherwise unchanged.
- Live preview and 'View as others' popout both render Details/State as
  clickable links and add a hover ring on hyperlinked images so you can
  sanity-check the experience before pushing live.
- Validation accepts https://, soft-warns on http://, hard-rejects
  everything else (no javascript:, data:, file:, etc).

Reference:
https://docs.discord.com/developers/discord-social-sdk/development-guides/setting-rich-presence