aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils
diff options
context:
space:
mode:
Diffstat (limited to 'bot/utils')
-rw-r--r--bot/utils/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/decorators.py b/bot/utils/decorators.py
index ed03c054..f39b52e2 100644
--- a/bot/utils/decorators.py
+++ b/bot/utils/decorators.py
@@ -201,7 +201,7 @@ def whitelist_check(**default_kwargs: Container[int]) -> Callable[[Context], boo
# determine which command's overrides we will use
# as we have groups, we want to ensure that group commands inherit from the parent
- overridden_command: Union[commands.Command, commands.Group] = None
+ overridden_command: Optional[commands.Command] = None
for command in [ctx.command, *ctx.command.parents]:
if hasattr(command.callback, "override"):
overridden_command = command