|
|
|
@@ -105,24 +105,25 @@ Studio installation. |
|
|
|
|
|
|
|
For applications targeting a runtime environment corresponding with |
|
|
|
.NET Standard 1.1 or 1.2, the built-in WebSocket and UDP provider will |
|
|
|
not work. Install and configure third-party provider packages for applications |
|
|
|
utilizing a WebSocket or an RPC connection to Discord. |
|
|
|
not work. Install and configure third-party provider packages for |
|
|
|
applications utilizing a WebSocket or an RPC connection to Discord. |
|
|
|
|
|
|
|
1. Install the following packages through NuGet, or compile the following |
|
|
|
packages yourself: |
|
|
|
1. Install the following packages through NuGet, or compile the |
|
|
|
following packages yourself: |
|
|
|
|
|
|
|
- Discord.Net.Providers.WS4Net |
|
|
|
- Discord.Net.Providers.UDPClient |
|
|
|
|
|
|
|
>[!NOTE] |
|
|
|
`Discord.Net.Providers.UDPClient` is _only_ required if your bot will be |
|
|
|
utilizing voice chat. |
|
|
|
`Discord.Net.Providers.UDPClient` is _only_ required if your bot will |
|
|
|
be utilizing voice chat. |
|
|
|
|
|
|
|
2. Configure your [DiscordSocketClient] to use these third-party providers |
|
|
|
over the default ones. |
|
|
|
2. Configure your [DiscordSocketClient] to use these third-party |
|
|
|
providers over the default ones. |
|
|
|
|
|
|
|
Set the `WebSocketProvider` and optionally the `UdpSocketProvider` properties |
|
|
|
in the [DiscordSocketConfig] and pass the config into your client. |
|
|
|
Set the `WebSocketProvider` and optionally the `UdpSocketProvider` |
|
|
|
properties in the [DiscordSocketConfig] and pass the config into |
|
|
|
your client. |
|
|
|
|
|
|
|
[!code-csharp[NET Standard 1.1 Example](samples/netstd11.cs)] |
|
|
|
|
|
|
|
|