From 256154e2ab4244e7267ffc21959a4ce65c982783 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sun, 3 Jun 2018 15:16:59 +0200 Subject: Basic code cleanup and removal of unnessesery libarys --- DiscoBot/Audio/Soundeffects.cs | 2 +- DiscoBot/Audio/Voice.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'DiscoBot/Audio') diff --git a/DiscoBot/Audio/Soundeffects.cs b/DiscoBot/Audio/Soundeffects.cs index 9982947..7e5e918 100644 --- a/DiscoBot/Audio/Soundeffects.cs +++ b/DiscoBot/Audio/Soundeffects.cs @@ -67,7 +67,7 @@ if (url != string.Empty) { // await Dsa.Service.SendAudioAsync(url, vol); - await Voice.SendAsync(url, volume); + Voice.SendAsync(url, volume); return; } diff --git a/DiscoBot/Audio/Voice.cs b/DiscoBot/Audio/Voice.cs index f9fc7a3..84a221c 100644 --- a/DiscoBot/Audio/Voice.cs +++ b/DiscoBot/Audio/Voice.cs @@ -18,7 +18,7 @@ { public static IAudioClient Client { get; set; } - public static async Task SendAsync(string path, int volume = 256) + public static void SendAsync(string path, int volume = 256) { if (Client == null) { @@ -74,7 +74,7 @@ } [Command("volume")] - public async Task SetVolume(int volume) + public void SetVolume(int volume) { if (volume <= 100 && volume >= 0) { -- cgit v1.2.3-70-g09d2