fix: replace decorator misuse with MaintenanceAwareTree subclass (#82) #84

Closed
Claude wants to merge 1 commits from ai/major-domo-v2-82 into main

1 Commits

Author SHA1 Message Date
Cal Corum
f7b2e452e0 fix: replace decorator misuse with MaintenanceAwareTree subclass (#82)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m4s
Closes #82

`@self.tree.interaction_check` in `setup_hook` called the coroutine as
a decorator factory instead of overriding it — producing an unawaited
coroutine warning and leaving maintenance mode as a no-op.

Replace with `MaintenanceAwareTree(discord.app_commands.CommandTree)` that
overrides `interaction_check`, and pass `tree_cls=MaintenanceAwareTree`
to `super().__init__`. Remove the now-obsolete decorator block from
`setup_hook`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 12:31:42 -05:00