serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
653 stars 114 forks source link

Hiding command from autocomplete #156

Closed sadorowo closed 1 year ago

sadorowo commented 1 year ago

Is there any way to hide command from poise::builtins::autocomplete_command?

kangalio commented 1 year ago

The function just returns an iterator so you can just append .filter(|command| command != "...")