aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-09 09:50:14 -0500
committerRapptz <[email protected]>2017-01-09 09:50:14 -0500
commit6adfd633ea3309e6499318c8ef8c0f4d2530e9aa (patch)
tree01a03d4b1699aa1cdce31fdccd31fb99f870cd6e
parentSimple parser for CHANNEL_PINS_UPDATE (diff)
downloaddiscord.py-6adfd633ea3309e6499318c8ef8c0f4d2530e9aa.tar.xz
discord.py-6adfd633ea3309e6499318c8ef8c0f4d2530e9aa.zip
Allow Messageable.send to work with non-truthy types.
-rw-r--r--discord/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 5711ef70..3a7d1556 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -533,7 +533,7 @@ class Messageable(metaclass=abc.ABCMeta):
channel = yield from self._get_channel()
guild_id = self._get_guild_id()
state = self._state
- content = str(content) if content else None
+ content = str(content) if content is not None else None
if embed is not None:
embed = embed.to_dict()