Display error if help is activated on a group the user is denied access to.
This commit is contained in:
@@ -235,6 +235,9 @@ After:
|
|||||||
output.Append('`');
|
output.Append('`');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isFirst)
|
||||||
|
output.Append("There are no subcommands you have permission to run.");
|
||||||
|
|
||||||
return _client.SendMessage(replyChannel ?? channel, output.ToString());
|
return _client.SendMessage(replyChannel ?? channel, output.ToString());
|
||||||
}
|
}
|
||||||
public Task ShowCommandHelp(Command command, User user, Channel channel, Channel replyChannel = null)
|
public Task ShowCommandHelp(Command command, User user, Channel channel, Channel replyChannel = null)
|
||||||
|
|||||||
Reference in New Issue
Block a user