diff options
author | TrueDoctor <d-kobert@web.de> | 2018-09-25 21:36:25 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-09-25 21:36:25 +0200 |
commit | ee0202042aafc76eb4339b3a04d06d06921ccdc2 (patch) | |
tree | ba5a41be5c4e61cbf759f3252d1562b649023d69 /DiscoBot/Auxiliary | |
parent | fe1af24f3cda4b94d02e3b2aad68a6c4398362b0 (diff) |
minor error fixes and functional improvements
Diffstat (limited to 'DiscoBot/Auxiliary')
-rw-r--r-- | DiscoBot/Auxiliary/Permissions.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/DiscoBot/Auxiliary/Permissions.cs b/DiscoBot/Auxiliary/Permissions.cs index 48f8040..4d73146 100644 --- a/DiscoBot/Auxiliary/Permissions.cs +++ b/DiscoBot/Auxiliary/Permissions.cs @@ -21,12 +21,15 @@ namespace DiscoBot.Auxiliary return roles.Any(role => ((SocketGuildUser)c.User).Roles.ToList().Exists(v => v.Name.Equals(role))); } - public static void Test(ICommandContext c, string role) + public static bool Test(ICommandContext c, string role) { if (!Check(c, role)) { c.Channel.SendMessageAsync("```xl\n Keine ausreichenden Berechtigungen\n```").Wait(); + return false; } + + return true; } public static void Test(ICommandContext c, string[] roles) |