summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/Soundeffects.cs
diff options
context:
space:
mode:
authorKobert <Kassian.Kobert@gmail.com>2018-04-09 20:44:42 +0200
committerKobert <Kassian.Kobert@gmail.com>2018-04-09 20:44:42 +0200
commit8bfd733d009c1777463500bc515336edabdf920c (patch)
tree76c3c6d3ded78ebd37f6613e35476afc0c7aa4fc /DiscoBot/Auxiliary/Soundeffects.cs
parentfcee15963e9e83fe5cae01300f26d9bcf3eb4e6c (diff)
parentbdf2b48e9939c0bcc91608963b610ba26bf3e90e (diff)
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
Diffstat (limited to 'DiscoBot/Auxiliary/Soundeffects.cs')
-rw-r--r--DiscoBot/Auxiliary/Soundeffects.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/DiscoBot/Auxiliary/Soundeffects.cs b/DiscoBot/Auxiliary/Soundeffects.cs
index d275eb4..d04b1c0 100644
--- a/DiscoBot/Auxiliary/Soundeffects.cs
+++ b/DiscoBot/Auxiliary/Soundeffects.cs
@@ -21,7 +21,7 @@ namespace DiscoBot.Auxiliary
public static class SoundEffects
{
- public static Task Play(Sound s)
+ public static async Task Play(Sound s)
{
string url = string.Empty;
int vol = 256;
@@ -53,10 +53,11 @@ namespace DiscoBot.Auxiliary
if (url != string.Empty)
{
- return Voice.SendAsync(url, vol);
+ await Task.Run(() => Voice.SendAsync(url, vol));
+ return;
}
- return Dsa.GeneralContext.Channel.SendMessageAsync("Ton Existiert nicht");
+ await Dsa.GeneralContext.Channel.SendMessageAsync("Ton Existiert nicht");
}
}
}