mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 09:10:14 +00:00
feat(commands): allow commands to not be suggested
This commit is contained in:
parent
f0d287b873
commit
58f07c3baa
3 changed files with 14 additions and 6 deletions
|
|
@ -110,6 +110,7 @@ pub fn parse_command(prefix: String, input: String) -> CommandResult {
|
|||
if !possible_commands.is_empty() {
|
||||
error.push_str(" Perhaps you meant to use one of the commands below:\n");
|
||||
for command in possible_commands {
|
||||
if !command.show_in_suggestions { continue }
|
||||
writeln!(&mut error, "- **{prefix}{command}** - *{}*", command.help)
|
||||
.expect("oom");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue