1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

Forgot to return the embed

This commit is contained in:
phxntxm 2019-02-14 18:38:18 -06:00
parent f99e419a2b
commit f318731882

View file

@ -37,8 +37,10 @@ LIMIT 5
value = "\n".join(f"{command} ({uses} uses)" for command, uses in results or "No Commands") value = "\n".join(f"{command} ({uses} uses)" for command, uses in results or "No Commands")
embed.add_field(name='Top Commands', value=value) embed.add_field(name='Top Commands', value=value)
return embed
async def _get_member_usage(self, member): 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( count = await self.bot.db.fetchrow(
"SELECT COUNT(*), MIN(executed) FROM command_usage WHERE author=$1", "SELECT COUNT(*), MIN(executed) FROM command_usage WHERE author=$1",
member.id member.id