Skip to content

Commit

Permalink
Added image url in embed title
Browse files Browse the repository at this point in the history
  • Loading branch information
kyb3r committed Apr 1, 2019
1 parent 784a760 commit 8393eef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# v2.13.11
### Added

Added image link in title in case discord fails to embed an image.


# v2.13.10

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__version__ = '2.13.10'
__version__ = '2.13.11'

import asyncio
import logging
Expand Down
3 changes: 3 additions & 0 deletions core/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ async def send(self, message, destination=None,
att[1]
):
embed.set_image(url=att[0])
if att[1]:
embed.url = att[0]
embed.title = att[1]
embedded_image = True
elif att[1] is not None:
if note:
Expand Down

0 comments on commit 8393eef

Please sign in to comment.