diff options
author | 2022-09-17 13:00:10 +0100 | |
---|---|---|
committer | 2022-09-17 13:00:10 +0100 | |
commit | 6199fd9d83940aaeee9cc243b4f98732f66734ea (patch) | |
tree | f6c63b6429dd89537950087a2c51b9f4affdf5f2 /bot/utils | |
parent | Split comment over lines evenly (diff) |
Remove unnecessary hasattr check
Diffstat (limited to 'bot/utils')
-rw-r--r-- | bot/utils/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/decorators.py b/bot/utils/decorators.py index 7ad9d22c..0061abd9 100644 --- a/bot/utils/decorators.py +++ b/bot/utils/decorators.py @@ -215,7 +215,7 @@ def whitelist_check(**default_kwargs: Container[int]) -> Callable[[Context], boo ) # Update kwargs based on override, if one exists - if overridden_command and hasattr(overridden_command.callback, "override"): + if overridden_command: # Handle DM invocations allow_dms = overridden_command.callback.override_dm |