summaryrefslogtreecommitdiff
path: root/DiscoBot/Audio/Voice.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Audio/Voice.cs')
-rw-r--r--DiscoBot/Audio/Voice.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/DiscoBot/Audio/Voice.cs b/DiscoBot/Audio/Voice.cs
index 7a7da5c..f9fc7a3 100644
--- a/DiscoBot/Audio/Voice.cs
+++ b/DiscoBot/Audio/Voice.cs
@@ -62,11 +62,8 @@
[Command("leave", RunMode = RunMode.Async)]
public async Task LeaveChannelAsync(IVoiceChannel channel = null)
{
- if (!((SocketGuildUser)this.Context.User).Roles.ToList().Exists(v => v.Name.Equals("Meister")))
- {
- await this.ReplyAsync("```xl\n Keine ausreichenden Berechtigunen\n```");
- return;
- }
+// Permissions.Test(this.Context, "Meister");
+
if (Client != null)
{
var wait = SoundEffects.Play(Sound.Nooo);
@@ -76,6 +73,15 @@
}
}
+ [Command("volume")]
+ public async Task SetVolume(int volume)
+ {
+ if (volume <= 100 && volume >= 0)
+ {
+ SoundEffects.Volume = volume;
+ }
+ }
+
[Command("play", RunMode = RunMode.Async)]
public async Task PlayAudioAsync(string path)
{