You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ConnectionMonitor.cs
+14-42
Original file line number
Diff line number
Diff line change
@@ -16,37 +16,25 @@
16
16
17
17
namespaceDiscordBotBase
18
18
{
19
-
/// <summary>
20
-
/// Helper to monitor a Discord bot's connectivity.
21
-
/// </summary>
19
+
/// <summary>Helper to monitor a Discord bot's connectivity.</summary>
22
20
publicclassConnectionMonitor
23
21
{
24
-
/// <summary>
25
-
/// The bot to monitor.
26
-
/// </summary>
22
+
/// <summary>The bot to monitor.</summary>
27
23
publicDiscordBotBot;
28
24
29
-
/// <summary>
30
-
/// Initializes the connection monitor. Call <see cref="StartMonitorLoop"/> to start the monitor loop.
31
-
/// </summary>
25
+
/// <summary>Initializes the connection monitor. Call <see cref="StartMonitorLoop"/> to start the monitor loop.</summary>
32
26
publicConnectionMonitor(DiscordBotbot)
33
27
{
34
28
Bot=bot;
35
29
}
36
30
37
-
/// <summary>
38
-
/// Whether the bot has ever connected to Discord (since this instance of the class was started).
39
-
/// </summary>
31
+
/// <summary>Whether the bot has ever connected to Discord (since this instance of the class was started).</summary>
40
32
publicboolConnectedOnce=false;
41
33
42
-
/// <summary>
43
-
/// Whether the bot believes itself to be currently connected to Discord. (If false, the bot is preparing or running a reconnection cycle).
44
-
/// </summary>
34
+
/// <summary>Whether the bot believes itself to be currently connected to Discord. (If false, the bot is preparing or running a reconnection cycle).</summary>
45
35
publicboolConnectedCurrently=false;
46
36
47
-
/// <summary>
48
-
/// Timespan the monitor should delay between connectivity checks.
49
-
/// </summary>
37
+
/// <summary>Timespan the monitor should delay between connectivity checks.</summary>
0 commit comments