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
* preliminary sharding design
---------
Co-authored-by: Velvet Toroyashi <42438262+VelvetToroyashi@users.noreply.github.com>
* we do need to disconnect too :P
* implement a rudimentary transport service
* reduce lifetime allocations of a DSharpPlus bot by up to one
* support decompression in TransportService
* commit to ask for feedback
* slightly more state handling effort + options
* alert GatewayClient of errors
* able to start a single shard (in theory)
* theoretically multi-shard orchestration works too now
* delete DiscordClient.WebSocket.cs
* make sharding clients possible to create
* delete the legacy websocketclient
* add support for getting latency and connection state
* DiscordClient may receive events, as a treat
* expose zombied to the user
* remove the sharded client
* implement sending payloads and reconnecting
* remove more legacy ShardedClient code
* make the shard count default to whatever Discord tells us
* move reconnecting logic into GatewayClient
* build
* convenience methods
* docs
* xmldocs for IGatewayClient
* works for single shards
* don't send opcode 11 to dispatch
* improve logging between shards
* implement the 5s concurrency limit
* accursed
* don't explode on reconnecting
* retry resuming if the connection cuts out
* remove unused using
* check whether all shards have connected before firing GDC
---------
Co-authored-by: Velvet Toroyashi <42438262+VelvetToroyashi@users.noreply.github.com>
client.Logger.LogCritical(CommandsNextEvents.Intents,"The CommandsNext extension is registered but there are no message intents enabled. It is highly recommended to enable them.");
client.Logger.LogCritical(CommandsNextEvents.Intents,"The CommandsNext extension is registered but the guilds intent is not enabled. It is highly recommended to enable it.");
39
39
}
@@ -43,26 +43,6 @@ public static CommandsNextExtension UseCommandsNext(this DiscordClient client, C
43
43
returncnext;
44
44
}
45
45
46
-
/// <summary>
47
-
/// Enables CommandsNext module on all shards in this <see cref="DiscordShardedClient"/>.
48
-
/// </summary>
49
-
/// <param name="client">Client to enable CommandsNext for.</param>
50
-
/// <param name="cfg">CommandsNext configuration to use.</param>
51
-
/// <returns>A dictionary of created <see cref="CommandsNextExtension"/>, indexed by shard id.</returns>
/// Retrieves the registered <see cref="InteractivityExtension"/> instance for this client.
57
33
/// </summary>
58
34
/// <param name="client">The client to retrieve an <see cref="InteractivityExtension"/> instance from.</param>
59
35
/// <returns>An existing <see cref="InteractivityExtension"/> instance, or <see langword="null"/> if interactivity is not enabled for the <see cref="DiscordClient"/> instance.</returns>
0 commit comments