Browse Source

Display error if help is activated on a group the user is denied access to.

tags/docs-0.9
RogueException 9 years ago
parent
commit
2abe8b4d80
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Discord.Net.Commands/CommandService.cs

+ 3
- 0
src/Discord.Net.Commands/CommandService.cs View File

@@ -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)


Loading…
Cancel
Save