Browse Source

add example payload for client_status

pull/1247/head
Chris Johnston 6 years ago
parent
commit
04dfe42d51
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/Discord.Net.Rest/API/Common/Presence.cs

+ 5
- 0
src/Discord.Net.Rest/API/Common/Presence.cs View File

@@ -19,6 +19,11 @@ namespace Discord.API
public Optional<ulong[]> Roles { get; set; }
[JsonProperty("nick")]
public Optional<string> Nick { get; set; }
// This property is a Dictionary where each key is the ClientType
// and the values are the current client status.
// The client status values are all the same.
// Example:
// "client_status": { "desktop": "dnd", "mobile": "dnd" }
[JsonProperty("client_status")]
public Optional<Dictionary<string, string>> ClientStatus { get; set; }
}


Loading…
Cancel
Save