Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 01599fb

Browse files
committed
fixed embeds
1 parent ce74625 commit 01599fb

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,16 @@ You can find more (and better) examples [here](https://github.com/discord-py-ui/
175175

176176
# Changelog
177177

178+
- <details>
179+
<summary>4.2.6</summary>
180+
181+
## **Fixed**
182+
183+
- emebds
184+
> there was an issue with sending embeds
185+
186+
</details>
187+
178188
- <details>
179189
<summary>4.2.5</summary>
180190

discord_ui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444

4545

4646
__title__ = "discord-ui"
47-
__version__ = "4.2.5"
47+
__version__ = "4.2.6"

discord_ui/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def jsonifyMessage(content=MISSING, tts=False, embed: discord.Embed=MISSING, emb
6666
payload["embeds"] = []
6767
else:
6868
embeds.append(embed)
69-
if not all(isinstance(x) for x in embeds):
69+
if not all(isinstance(x, discord.Embed) for x in embeds):
7070
raise WrongType("embeds", embeds, 'list[discord.Embed]')
7171
payload["embeds"] = [em.to_dict() for em in embeds]
7272

0 commit comments

Comments
 (0)