diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-03 15:16:59 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-03 15:16:59 +0200 |
commit | 256154e2ab4244e7267ffc21959a4ce65c982783 (patch) | |
tree | 4fc38ee99a20debd7ab710cfe39700272ee067da /DiscoBot/Audio | |
parent | f6edadbfcadbc9e38e22500a496a74dd49d96d8a (diff) |
Basic code cleanup and removal of unnessesery libarys
Diffstat (limited to 'DiscoBot/Audio')
-rw-r--r-- | DiscoBot/Audio/Soundeffects.cs | 2 | ||||
-rw-r--r-- | DiscoBot/Audio/Voice.cs | 4 |
2 files changed, 3 insertions, 3 deletions
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) { |