mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Allow Messageable.send to work with non-truthy types.
This commit is contained in:
@@ -533,7 +533,7 @@ class Messageable(metaclass=abc.ABCMeta):
|
|||||||
channel = yield from self._get_channel()
|
channel = yield from self._get_channel()
|
||||||
guild_id = self._get_guild_id()
|
guild_id = self._get_guild_id()
|
||||||
state = self._state
|
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:
|
if embed is not None:
|
||||||
embed = embed.to_dict()
|
embed = embed.to_dict()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user