summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Gm.cs
diff options
context:
space:
mode:
authorKobert <Kassian.Kobert@gmail.com>2018-06-01 13:36:58 +0200
committerKobert <Kassian.Kobert@gmail.com>2018-06-01 13:36:58 +0200
commit62c71f7189b0bc3689fe6f82a8234af922cef2d2 (patch)
treea940f01d71d2e876067124cf7455c67cfed880ac /DiscoBot/Commands/Gm.cs
parentdafc59577d16eac7fb198e36c81bd3fe4b008f18 (diff)
parentf6edadbfcadbc9e38e22500a496a74dd49d96d8a (diff)
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
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);