-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMessageType.cs
More file actions
63 lines (53 loc) · 1.83 KB
/
MessageType.cs
File metadata and controls
63 lines (53 loc) · 1.83 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
namespace DiscordRPC.Message
{
/// <summary>
/// Type of message.
/// </summary>
public enum MessageType
{
/// <summary>
/// The Discord Client is ready to send and receive messages.
/// </summary>
Ready,
/// <summary>
/// The connection to the Discord Client is lost. The connection will remain close and unready to accept messages until the Ready event is called again.
/// </summary>
Close,
/// <summary>
/// A error has occured during the transmission of a message. For example, if a bad Rich Presence payload is sent, this event will be called explaining what went wrong.
/// </summary>
Error,
/// <summary>
/// The Discord Client has updated the presence.
/// </summary>
PresenceUpdate,
/// <summary>
/// The Discord Client has subscribed to an event.
/// </summary>
Subscribe,
/// <summary>
/// The Discord Client has unsubscribed from an event.
/// </summary>
Unsubscribe,
/// <summary>
/// The Discord Client wishes for this process to join a game.
/// </summary>
Join,
/// <summary>
/// The Discord Client wishes for this process to spectate a game.
/// </summary>
Spectate,
/// <summary>
/// Another discord user requests permission to join this game.
/// </summary>
JoinRequest,
/// <summary>
/// The connection to the discord client was succesfull. This is called before <see cref="Ready"/>.
/// </summary>
ConnectionEstablished,
/// <summary>
/// Failed to establish any connection with discord. Discord is potentially not running?
/// </summary>
ConnectionFailed
}
}