Skip to content

Commit

Permalink
Fix send bytes to discord
Browse files Browse the repository at this point in the history
  • Loading branch information
AlberLC committed Jun 13, 2022
1 parent bf5eab5 commit e541717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multibot/bots/discord_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async def _prepare_media_to_send(media: Media) -> discord.File | None:
return discord.File(media.url)
else:
return discord.File(media.url, filename=f'bot_media.{media.type_.extension}')
else:
elif not media.bytes_:
media.bytes_ = await flanautils.get_request(media.url)

if bytes_ := media.bytes_:
Expand Down

0 comments on commit e541717

Please sign in to comment.