From 5092d522fe7d985ee6aa0309620054317bf25995 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 22 Feb 2022 04:52:33 +0100 Subject: [PATCH] :bug: Fix #4 --- royalnet_discordpy/bullet/contents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet_discordpy/bullet/contents.py b/royalnet_discordpy/bullet/contents.py index 10aa8104..65cb6770 100644 --- a/royalnet_discordpy/bullet/contents.py +++ b/royalnet_discordpy/bullet/contents.py @@ -45,7 +45,7 @@ class DiscordMessage(co.Message): if files is None: files = [] - msg = await self._msg.reply(content=ds_markdown_format(text), files=[discord.File(file) for file in files]) + msg = await self._msg.reply(content=ds_markdown_format(text) if text else None, files=[discord.File(file) for file in files]) return DiscordMessage(msg=msg)