diff options
| author | Rapptz <[email protected]> | 2017-01-09 09:50:14 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-09 09:50:14 -0500 |
| commit | 6adfd633ea3309e6499318c8ef8c0f4d2530e9aa (patch) | |
| tree | 01a03d4b1699aa1cdce31fdccd31fb99f870cd6e | |
| parent | Simple parser for CHANNEL_PINS_UPDATE (diff) | |
| download | discord.py-6adfd633ea3309e6499318c8ef8c0f4d2530e9aa.tar.xz discord.py-6adfd633ea3309e6499318c8ef8c0f4d2530e9aa.zip | |
Allow Messageable.send to work with non-truthy types.
| -rw-r--r-- | discord/abc.py | 2 |
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() |