From c7dc4c9336ad00c1fefa1bed69dc54e054b02d96 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Fri, 18 Dec 2020 08:57:56 -0800 Subject: [PATCH] [Tools] sinfo fix --- tools/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools.py b/tools/tools.py index 9bbce33e..c38b6a32 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -641,7 +641,7 @@ async def sinfo(self, ctx, guild=None): else: try: guild = self.bot.get_guild(int(guild)) - except TypeError: + except ValueError: return await ctx.send("Not a valid guild id.") online = str(len([m.status for m in guild.members if str(m.status) == "online" or str(m.status) == "idle"])) total_users = str(len(guild.members))