From f23734858ff09e37ad8f8bf611f34f60d400dd2c Mon Sep 17 00:00:00 2001 From: SupDos <6813986+SupDos@users.noreply.github.com> Date: Tue, 17 Mar 2026 04:31:28 +0100 Subject: [PATCH] Fix Discord playtime counter resetting on every activity change (#36973) Discord resets the playtime counter on the rich presence whenever the status changes since there's no timestamp set as the start time for the activity. This PR adds the timestamp as `Timestamps.Now` as per the [library docs](https://lachee.github.io/discord-rpc-csharp/articles/features/timestamps.html)
Before After
https://github.com/user-attachments/assets/a745967a-3dfa-4f70-938c-a9abd45866c6 https://github.com/user-attachments/assets/09c24fde-f150-4a3b-bb6a-afb325561508
--- osu.Desktop/DiscordRichPresence.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/osu.Desktop/DiscordRichPresence.cs b/osu.Desktop/DiscordRichPresence.cs index bbdb719b05..2f6b99c188 100644 --- a/osu.Desktop/DiscordRichPresence.cs +++ b/osu.Desktop/DiscordRichPresence.cs @@ -58,6 +58,7 @@ namespace osu.Desktop private readonly RichPresence presence = new RichPresence { Assets = new Assets { LargeImageKey = "osu_logo_lazer" }, + Timestamps = Timestamps.Now, Secrets = new Secrets { JoinSecret = null,