diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-01 11:25:03 +0100 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-01 11:25:03 +0100 |
commit | f6edadbfcadbc9e38e22500a496a74dd49d96d8a (patch) | |
tree | 36749e99ee87b9f481254a890acfb7149e6b3fb8 /DiscoBot/Commands/Gm.cs | |
parent | 181dba0f96d8792e3565286b3983830674624cc5 (diff) |
added Permissions Class for easy Permission required commands
Diffstat (limited to 'DiscoBot/Commands/Gm.cs')
-rw-r--r-- | DiscoBot/Commands/Gm.cs | 6 |
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); |