-
-
Notifications
You must be signed in to change notification settings - Fork 319
Expand file tree
/
Copy pathDiscordConnection.cs
More file actions
72 lines (60 loc) · 2.22 KB
/
Copy pathDiscordConnection.cs
File metadata and controls
72 lines (60 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System.Collections.Generic;
using Newtonsoft.Json;
namespace DSharpPlus.Entities;
/// <summary>
/// Gets a Discord connection to a 3rd party service.
/// </summary>
public class DiscordConnection
{
/// <summary>
/// Gets the id of the connection account
/// </summary>
[JsonProperty("id")]
public string Id { get; internal set; }
/// <summary>
/// Gets the username of the connection account.
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }
/// <summary>
/// Gets the service of the connection (twitch, youtube, steam, twitter, facebook, spotify, leagueoflegends, reddit)
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
/// <summary>
/// Gets whether the connection is revoked.
/// </summary>
[JsonProperty("revoked")]
public bool IsRevoked { get; internal set; }
/// <summary>
/// Gets a collection of partial server integrations.
/// </summary>
[JsonProperty("integrations", NullValueHandling = NullValueHandling.Ignore)]
public IReadOnlyList<DiscordIntegration> Integrations { get; internal set; }
/// <summary>
/// Gets the connection is verified or not.
/// </summary>
[JsonProperty("verified", NullValueHandling = NullValueHandling.Ignore)]
public bool? Verified { get; set; }
/// <summary>
/// Gets the connection will show activity or not.
/// </summary>
[JsonProperty("show_activity", NullValueHandling = NullValueHandling.Ignore)]
public bool? ShowActivity { get; set; }
/// <summary>
/// Gets the connection will sync friends or not.
/// </summary>
[JsonProperty("friend_sync", NullValueHandling = NullValueHandling.Ignore)]
public bool? FriendSync { get; set; }
/// <summary>
/// Gets the visibility of the connection.
/// </summary>
[JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)]
public long? Visibility { get; set; }
/// <summary>
/// Gets the client instance this object is tied to.
/// </summary>
[JsonIgnore]
internal BaseDiscordClient Discord { get; set; }
internal DiscordConnection() { }
}