Skip to content

Commit 8393eef

Browse files
committed
Added image url in embed title
1 parent 784a760 commit 8393eef

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# v2.13.11
8+
### Added
9+
10+
Added image link in title in case discord fails to embed an image.
11+
12+
713
# v2.13.10
814

915
### Fixed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = '2.13.10'
25+
__version__ = '2.13.11'
2626

2727
import asyncio
2828
import logging

core/thread.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ async def send(self, message, destination=None,
443443
att[1]
444444
):
445445
embed.set_image(url=att[0])
446+
if att[1]:
447+
embed.url = att[0]
448+
embed.title = att[1]
446449
embedded_image = True
447450
elif att[1] is not None:
448451
if note:

0 commit comments

Comments
 (0)