diff options
| author | 2020-08-22 19:13:21 -0700 | |
|---|---|---|
| committer | 2020-08-22 20:07:03 -0700 | |
| commit | f455a7908a9b07747db6ab89f9c5c53bd5ea2450 (patch) | |
| tree | d4f81d577b8e453eba5902c5a527149d21a094c2 /tests | |
| parent | Define a Command subclass with root alias support (diff) | |
Bot: add root alias support
Override `Bot.add_command` and `Bot.remove_command` to add/remove root
aliases for a command (and recursively for any subcommands). This has
to happen in `Bot` because there's no reliable way to get the `Bot`
instance otherwise. Therefore, overriding the methods in `GroupMixin`
unfortunately doesn't work. Otherwise, it'd be possible to avoid
recursion by processing each subcommand as it got added.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
