Skip to content

Commit

Permalink
[Tools] sinfo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aikaterna authored Dec 18, 2020
1 parent 0a0c007 commit c7dc4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c7dc4c9

Please sign in to comment.