1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Fix reverse response edit if not embed

This commit is contained in:
Myned 2022-03-06 22:19:22 -06:00
parent e639dc4727
commit 45f5359982
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -125,7 +125,10 @@ async def _reverse(context, urls, *, selector=None):
await selector.send_edit(context.interaction) await selector.send_edit(context.interaction)
else: else:
if selector: if selector:
if isinstance(pages[0], hikari.Embed):
await context.interaction.edit_initial_response(content=None, embed=pages[0], components=None) 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: else:
await context.respond(pages[0]) await context.respond(pages[0])