minor qol changes + fix
@@ -229,7 +229,8 @@ class Owner(commands.Cog):
@commands.command(name="jlstats", aliases=["joinleavestats", "joinsleaves", "jls"])
@commands.is_owner()
async def joinleaves(self, ctx: Ctx):
- records = await self.db.fetch(
+ async with SuppressCtxManager(ctx.typing()):
+ records = await self.db.db.fetch(
"""SELECT COALESCE(join_count, 0) AS join_count, COALESCE(leave_count, 0) AS leave_count, COALESCE(iq1.event_at_trunc, iq2.event_at_trunc) AS event_at FROM (
SELECT COUNT(*) AS join_count, DATE_TRUNC('day', event_at) AS event_at_trunc FROM guild_events WHERE event_type = 1 GROUP BY event_at_trunc ORDER BY event_at_trunc ASC
) iq1
