Forgot to return the embed
This commit is contained in:
parent
f99e419a2b
commit
f318731882
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue