From adcf6a4754892b8b52eb9ae09bb91b6f3517ef0e Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 15 Sep 2023 09:43:49 -0700 Subject: [PATCH] Edit the original message for /sd if the connection fails, this will reduce clutter in the channel --- app/cogs/stable_diffusion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cogs/stable_diffusion.py b/app/cogs/stable_diffusion.py index 1c142154..c3cb13a0 100755 --- a/app/cogs/stable_diffusion.py +++ b/app/cogs/stable_diffusion.py @@ -79,7 +79,7 @@ class StableDiffusion(commands.Cog): ) os.remove(file_path) except Exception as e: - await ctx.respond( + await original_message.edit( "Stable diffusion isnt running right now, sorry.\n%s" % e, ) else: