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...')