Lachee / discord-rpc-csharp

C# custom implementation for Discord Rich Presence. Not deprecated and still available!
MIT License
560 stars 94 forks source link

[FEATURE REQUEST] Timestamp #108

Closed kaaax0815 closed 3 years ago

kaaax0815 commented 3 years ago

Please add the support of timestamps

SaraX73 commented 3 years ago

new Timestamps(new DateTime(timeStamps / 100))

long timeStamps = /*your timeStamps*/ 12345678
            client.SetPresence(new RichPresence()
            {
                Details = details,
                State = state,
                Assets = new Assets()
                {
                    LargeImageKey = largeImageKey,
                    SmallImageKey = smallImageKey,
                    LargeImageText = largeImageText,
                    SmallImageText = smallImageText
                },
                Timestamps = new Timestamps(new DateTime(timeStamps / 100))
            });
Lachee commented 3 years ago

We already have support for timestamps