mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 06:27:27 +00:00
Fix reverse response edit if not embed
This commit is contained in:
parent
e639dc4727
commit
45f5359982
1 changed files with 4 additions and 1 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in a new issue