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:
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)
|
await selector.send_edit(context.interaction)
|
||||||
else:
|
else:
|
||||||
if selector:
|
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:
|
else:
|
||||||
await context.respond(pages[0])
|
await context.respond(pages[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue