aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/utils.py')
-rw-r--r--discord/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 35044836..06aa5a35 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -237,9 +237,7 @@ def _get_as_snowflake(data, key):
except KeyError:
return None
else:
- if value is None:
- return value
- return int(value)
+ return value and int(value)
def _get_mime_type_for_image(data):
if data.startswith(b'\x89\x50\x4E\x47\x0D\x0A\x1A\x0A'):