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

Commit 9b3d8e4

Browse files
committed
fixed #97
1 parent e190463 commit 9b3d8e4

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,10 @@ You can find more (and better) examples [here](https://github.com/discord-py-ui/
177177
# Changelog
178178

179179
- <details>
180-
<summary>4.3.0</summary>
180+
<summary>4.2.15</summary>
181181

182182
## **Fixed**
183-
- `Message.wait_for`
184-
> by keyword doesn't work properly
185-
183+
- #97
186184

187185
</details>
188186

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.3.0"
47+
__version__ = "4.2.15"

discord_ui/http.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ def jsonifyMessage(content=MISSING, tts=False, embed: discord.Embed=MISSING, emb
6262
if embed is not MISSING and embeds is MISSING:
6363
embeds = [embed]
6464
elif embed is not MISSING and embeds is not MISSING:
65-
if embeds is None:
66-
payload["embeds"] = []
67-
else:
68-
embeds.append(embed)
69-
if not all(isinstance(x, discord.Embed) for x in embeds):
65+
embeds.append(embed)
66+
if embeds is None or embed is None:
67+
embeds = []
68+
elif not all(isinstance(x, discord.Embed) for x in embeds):
7069
raise WrongType("embeds", embeds, 'list[discord.Embed]')
7170
payload["embeds"] = [em.to_dict() for em in embeds]
7271

0 commit comments

Comments
 (0)