Allow Messageable.send to work with non-truthy types.

This commit is contained in:
Rapptz 2017-01-09 09:50:14 -05:00
parent c635ce2526
commit 6adfd633ea

View File

@ -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()