From 42760a431f8500fc2e4844669f158bbeed418c16 Mon Sep 17 00:00:00 2001 From: AkriliksKotya Date: Sun, 21 Dec 2025 17:18:31 +0500 Subject: [PATCH] fix update channel.send --- c/update.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c/update.py b/c/update.py index 7baecca..7a45026 100644 --- a/c/update.py +++ b/c/update.py @@ -28,7 +28,10 @@ class Update(commands.Cog): python = sys.executable os.execv(python, [python] + sys.argv) - await channel.send('restart successful') + try: + await channel.send('restart successful') + except: + await context.channel.send('restart succesful') @commands.Cog.listener() async def on_ready(self):