From 2abe8b4d80e0ba9536f856a03009b3c6aedf83d7 Mon Sep 17 00:00:00 2001 From: RogueException Date: Mon, 9 Nov 2015 21:03:26 -0400 Subject: [PATCH] Display error if help is activated on a group the user is denied access to. --- src/Discord.Net.Commands/CommandService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 7a3d984c7..362f0f1fa 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -235,6 +235,9 @@ After: output.Append('`'); } + if (isFirst) + output.Append("There are no subcommands you have permission to run."); + return _client.SendMessage(replyChannel ?? channel, output.ToString()); } public Task ShowCommandHelp(Command command, User user, Channel channel, Channel replyChannel = null)