Add tests for #[command(hide)]

This commit is contained in:
TheAwiteb 2023-03-02 20:43:19 +03:00
parent 7c23bfc546
commit f6595383c4
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -204,8 +204,10 @@ fn descriptions_off() {
#[derive(BotCommands, Debug, PartialEq)] #[derive(BotCommands, Debug, PartialEq)]
#[command(rename_rule = "lowercase")] #[command(rename_rule = "lowercase")]
enum DefaultCommands { enum DefaultCommands {
#[command(description = "off")] #[command(hide)]
Start, Start,
#[command(hide)]
Username,
Help, Help,
} }