diff options
author | Kobert <Kassian.Kobert@gmail.com> | 2018-06-03 19:43:17 +0200 |
---|---|---|
committer | Kobert <Kassian.Kobert@gmail.com> | 2018-06-03 19:43:17 +0200 |
commit | c5d52357f365e2b095f5c430dceadd1f42045880 (patch) | |
tree | f257dd57ffb31da2e422dc64dc42de4cc13cd8c8 /DiscoBot/Audio | |
parent | 62c71f7189b0bc3689fe6f82a8234af922cef2d2 (diff) | |
parent | 256154e2ab4244e7267ffc21959a4ce65c982783 (diff) |
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
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) { |