mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Allow Messageable.send to work with non-truthy types.
This commit is contained in:
parent
c635ce2526
commit
6adfd633ea
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user