fix(seautils): use ctx.embed_requested()
This commit is contained in:
parent
059badaa9b
commit
2dcbcb0a59
1 changed files with 6 additions and 3 deletions
|
@ -50,7 +50,10 @@ class SeaUtils(commands.Cog):
|
|||
for page in temp_content:
|
||||
content.append(f"**Page {i}/{max_i}**\n{cf.box(page, lang='py')}")
|
||||
i += 1
|
||||
await SimpleMenu(content, disable_after_timeout=True, timeout=180).start(ctx)
|
||||
await SimpleMenu(pages=content, disable_after_timeout=True, timeout=180).start(ctx)
|
||||
except (OSError, AttributeError):
|
||||
embed = Embed(title="Command not found!", color=await ctx.embed_color())
|
||||
await ctx.send(embed=embed, reference=ctx.message.to_reference(fail_if_not_exists=False))
|
||||
if ctx.embed_requested():
|
||||
embed = Embed(title="Command not found!", color=await ctx.embed_color())
|
||||
await ctx.send(embed=embed, reference=ctx.message.to_reference(fail_if_not_exists=False))
|
||||
else:
|
||||
await ctx.send(content="Command not found!", reference=ctx.message.to_reference(fail_if_not_exists=False))
|
||||
|
|
Loading…
Reference in a new issue