From 7b8db49efe59f2eb1e5042d0272b64d615d2c1f1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 30 Apr 2021 01:04:18 -0400 Subject: [PATCH] Fix utils.MISSING not evaluating to True in implicit bool contexts --- discord/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/utils.py b/discord/utils.py index b2068ee5c..ec4e1bbaa 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -83,6 +83,9 @@ class _MissingSentinel: def __eq__(self, other): return False + def __bool__(self): + return False + def __repr__(self): return '...'