fix help cmd
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 54s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 54s
This commit is contained in:
parent
4aae21b594
commit
07c5a7358b
@ -135,7 +135,7 @@ public class HelpCommand extends BatCommand implements EventListener {
|
|||||||
%s
|
%s
|
||||||
*View our [TOS](%s) and [Privacy Policy](%s) for more information.*
|
*View our [TOS](%s) and [Privacy Policy](%s) for more information.*
|
||||||
""".formatted(
|
""".formatted(
|
||||||
!ranInsideGuild ? "\n*guild only commands won't be shown here" : "",
|
!ranInsideGuild ? "\n*guild only commands won't be shown here*" : "",
|
||||||
categories.toString(),
|
categories.toString(),
|
||||||
Consts.TERMS_OF_SERVICE_URL,
|
Consts.TERMS_OF_SERVICE_URL,
|
||||||
Consts.PRIVACY_POLICY_URL
|
Consts.PRIVACY_POLICY_URL
|
||||||
|
@ -140,7 +140,7 @@ public class CommandService extends ListenerAdapter {
|
|||||||
public List<BatCommand> getCommandsByCategory(Category category, boolean includeGuildCommands) {
|
public List<BatCommand> getCommandsByCategory(Category category, boolean includeGuildCommands) {
|
||||||
List<BatCommand> commands = new ArrayList<>();
|
List<BatCommand> commands = new ArrayList<>();
|
||||||
for (BatCommand command : this.commands.values()) {
|
for (BatCommand command : this.commands.values()) {
|
||||||
if (command.getInfo().getCategory() == category && (includeGuildCommands || !command.getInfo().isGuildOnly())) {
|
if (command.getInfo().getCategory() == category && (includeGuildCommands || command.getInfo().isUserInstall())) {
|
||||||
commands.add(command);
|
commands.add(command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user