aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-09-17 13:00:10 +0100
committerGravatar GitHub <[email protected]>2022-09-17 13:00:10 +0100
commit6199fd9d83940aaeee9cc243b4f98732f66734ea (patch)
treef6c63b6429dd89537950087a2c51b9f4affdf5f2 /bot/utils
parentSplit comment over lines evenly (diff)
Remove unnecessary hasattr check
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 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