From 45f535998232c0b5a8191418cccb3c933c1d0f6e Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 6 Mar 2022 22:19:22 -0600 Subject: [PATCH] Fix reverse response edit if not embed --- commands/booru.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/booru.py b/commands/booru.py index 06c07aa..d5ac7aa 100644 --- a/commands/booru.py +++ b/commands/booru.py @@ -125,7 +125,10 @@ async def _reverse(context, urls, *, selector=None): await selector.send_edit(context.interaction) else: if selector: - await context.interaction.edit_initial_response(content=None, embed=pages[0], components=None) + if isinstance(pages[0], hikari.Embed): + await context.interaction.edit_initial_response(content=None, embed=pages[0], components=None) + else: + await context.interaction.edit_initial_response(pages[0], components=None) else: await context.respond(pages[0])