Skip to content

Commit

Permalink
Minor changes to how rich presence setting works
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Aug 1, 2023
1 parent 04dda07 commit c0d173e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Bloxstrap/Integrations/DiscordRichPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void ProcessRPCMessage(Message message)
{
if (presenceData.Details.Length > 128)
App.Logger.WriteLine(LOG_IDENT, $"Details cannot be longer than 128 characters");
else if (presenceData.Details == "<revert>")
else if (presenceData.Details == "<reset>")
_currentPresence.Details = _currentPresenceCopy.Details;
else
_currentPresence.Details = presenceData.Details;
Expand All @@ -93,7 +93,7 @@ public void ProcessRPCMessage(Message message)
{
if (presenceData.State.Length > 128)
App.Logger.WriteLine(LOG_IDENT, $"State cannot be longer than 128 characters");
else if (presenceData.State == "<revert>")
else if (presenceData.State == "<reset>")
_currentPresence.State = _currentPresenceCopy.State;
else
_currentPresence.State = presenceData.State;
Expand Down
4 changes: 2 additions & 2 deletions Bloxstrap/Models/BloxstrapRPC/RichPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class RichPresence
[JsonPropertyName("state")]
public string? State { get; set; }

[JsonPropertyName("timestampStart")]
[JsonPropertyName("timeStart")]
public ulong? TimestampStart { get; set; }

[JsonPropertyName("timestampEnd")]
[JsonPropertyName("timeEnd")]
public ulong? TimestampEnd { get; set; }

[JsonPropertyName("smallImage")]
Expand Down

0 comments on commit c0d173e

Please sign in to comment.