From 4a390588259b70838e66832e227e8465d34dbc80 Mon Sep 17 00:00:00 2001 From: AkriliksKotya Date: Sun, 21 Dec 2025 17:43:36 +0500 Subject: [PATCH] fix --- c/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/c/update.py b/c/update.py index deb7e5a..c0d81a3 100644 --- a/c/update.py +++ b/c/update.py @@ -17,9 +17,10 @@ class Update(commands.Cog): Make pull from git repository and restart """ + res = await self.bot.ch(server_id=context.guild.id) + channel = self.bot.get_channel(res) try: - res = await self.bot.ch(server_id=context.guild.id) - channel = self.bot.get_channel(int(res)) + channel = int(channel) except: channel = context await channel.send('restarting...')