From 6199fd9d83940aaeee9cc243b4f98732f66734ea Mon Sep 17 00:00:00 2001 From: wookie184 Date: Sat, 17 Sep 2022 13:00:10 +0100 Subject: Remove unnecessary hasattr check --- bot/utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/utils/decorators.py') 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 -- cgit v1.2.3