From f318731882336aab7109a4ad354226a575017108 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Thu, 14 Feb 2019 18:38:18 -0600 Subject: [PATCH] Forgot to return the embed --- cogs/stats.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/stats.py b/cogs/stats.py index d22c65d..0c805d2 100644 --- a/cogs/stats.py +++ b/cogs/stats.py @@ -37,8 +37,10 @@ LIMIT 5 value = "\n".join(f"{command} ({uses} uses)" for command, uses in results or "No Commands") embed.add_field(name='Top Commands', value=value) + return embed + async def _get_member_usage(self, member): - embed = discord.Embed(title=f"{member.display_name} command usage") + embed = discord.Embed(title=f"{member.display_name}'s command usage") count = await self.bot.db.fetchrow( "SELECT COUNT(*), MIN(executed) FROM command_usage WHERE author=$1", member.id