Skip to content

Commit

Permalink
Bump Discord API Version. Remove Win7 Support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Terry authored and Marcus Terry committed Jul 26, 2019
1 parent 387a55c commit 5a26109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions ACT_DiscordTriggers/DiscordAPI/DiscordAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Discord.Net">
<Version>2.1.0</Version>
</PackageReference>
<PackageReference Include="Discord.Net.Providers.WS4Net">
<Version>2.1.0</Version>
<Version>2.1.1</Version>
</PackageReference>
<PackageReference Include="NAudio">
<Version>1.9.0</Version>
Expand Down
5 changes: 1 addition & 4 deletions ACT_DiscordTriggers/DiscordAPI/DiscordClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Discord;
using Discord.Audio;
using Discord.Net.Providers.WS4Net;
using Discord.WebSocket;
using NAudio.Wave;
using System;
Expand All @@ -24,9 +23,7 @@ public static class DiscordClient {

public static async void InIt(string logintoken) {
try {
bot = new DiscordSocketClient(new DiscordSocketConfig {
WebSocketProvider = WS4NetProvider.Instance
});
bot = new DiscordSocketClient();
} catch (NotSupportedException ex) {
Log?.Invoke("Unsupported Operating System.");
Log?.Invoke(ex.Message);
Expand Down

0 comments on commit 5a26109

Please sign in to comment.