Add tests for #[command(hide)]

This commit is contained in:
TheAwiteb 2023-03-02 20:43:19 +03:00 committed by Maybe Waffle
parent e003ece920
commit ebdab88311

View file

@ -232,8 +232,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,
} }