Skip to content

Commit

Permalink
Make sole respond(embed=...) work again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny2github committed Jan 16, 2022
1 parent c00eb66 commit 96ba837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/ext/slash/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ async def respond(
allowed_mentions=allowed_mentions, file=file, files=files)
if isinstance(file, discord.File):
files = [file]
if embed is not None:
embeds = [embed]
if responded:
# update the original message - an edit
data = msg_data # if data gets used, msg_data is not a list
Expand Down

0 comments on commit 96ba837

Please sign in to comment.