summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Gm.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Commands/Gm.cs')
-rw-r--r--DiscoBot/Commands/Gm.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/DiscoBot/Commands/Gm.cs b/DiscoBot/Commands/Gm.cs
index c1fa4b1..b426655 100644
--- a/DiscoBot/Commands/Gm.cs
+++ b/DiscoBot/Commands/Gm.cs
@@ -36,11 +36,7 @@
[Alias("GM", "as", "As", "als")]
public async Task ProbeAsync([Summary("Fernkampfwaffe")] string name, string command, string waffe, int erschwernis = 0)
{
- 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");
command = command.ToLower();
string res = this.Test(name, command, waffe, erschwernis);