aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-22 19:13:21 -0700
committerGravatar MarkKoz <[email protected]>2020-08-22 20:07:03 -0700
commitf455a7908a9b07747db6ab89f9c5c53bd5ea2450 (patch)
treed4f81d577b8e453eba5902c5a527149d21a094c2 /tests
parentDefine 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