Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you customize the help command? #17

Closed
Apoo711 opened this issue Feb 12, 2022 · 2 comments
Closed

How do you customize the help command? #17

Apoo711 opened this issue Feb 12, 2022 · 2 comments

Comments

@Apoo711
Copy link

Apoo711 commented Feb 12, 2022

How do you customize the help command, I've read over the docs several and I might've missed if it was documented, but if it isn't, is there a supported way to edit the help command or do I need to fork the repo and make changes?

@freya022
Copy link
Owner

There are two different ways of adding content to the help command:

  • One with TextCommandsBuilder#setHelpBuilderConsumer, which will let you add more info to the global (the one sent in DMs) help embed
  • And the other one with TextCommandsBuilder#disableHelpCommand, which lets you "override" the behavior of the help command, this is used when a user misuses a command and no fallback method exists for the command

You can get a TextCommandsBuilder to configure these in CommandsBuilder#textCommandBuilder

You may also join the support server for further discussion

@Apoo711
Copy link
Author

Apoo711 commented Feb 12, 2022

Ah, thank you! Also thank you for the quick response.

@Apoo711 Apoo711 closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants