aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2024-01-05 13:48:49 +0000
committerGravatar wookie184 <[email protected]>2024-01-05 13:48:49 +0000
commite8bc1b80b4d2b2e50832761cee2ed3e343cf51c8 (patch)
treea4dc504845fda0dfbc8abbaa759f776b18d8a00d
parentUpdate unambiguous converter to not support usernames (diff)
Don't instantiate class to call static method
-rw-r--r--bot/converters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/converters.py b/bot/converters.py
index 977035e1d..038f815a5 100644
--- a/bot/converters.py
+++ b/bot/converters.py
@@ -424,7 +424,7 @@ class HushDurationConverter(Converter):
def _is_an_unambiguous_user_argument(argument: str) -> bool:
"""Check if the provided argument is a user mention or user id."""
- user_id = IDConverter()._get_id_match(argument)
+ user_id = IDConverter._get_id_match(argument)
user_mention = RE_USER_MENTION.match(argument)
return bool(user_id or user_mention)