serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Help-Command Sub-Sub-Group Usage Documentation

Open florian1345 opened this issue 2 years ago • 0 comments

The usage documentations in the help command of commands of sub-sub-groups are missing the first prefix.

Code Example

#[group]
#[commands(...)]
#[sub_groups(sub)]
struct Root;

#[group("Sub")]
#[prefix("sub")]
#[commands(...)]
#[sub_groups(subsub)]
struct Sub;

#[group("SubSub")]
#[prefix("subsub")]
#[commands(my_command, ...)]
struct SubSub;

When running help sub subsub my_command, the usage would display subsub my_command [...] instead of the expected sub subsub my_command [...].

Version Information

Rust version: 1.62.1 Serenity version: 0.11.5

florian1345 avatar Aug 04 '22 19:08 florian1345