From 2dcbcb0a59cc86d12a48e973d11f581d3255447f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 13 May 2024 21:14:15 -0400 Subject: [PATCH] fix(seautils): use ctx.embed_requested() --- seautils/seautils.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/seautils/seautils.py b/seautils/seautils.py index 66d877a..e4468ca 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -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))