mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Declare embed properties on creation
This commit is contained in:
parent
79073d4b62
commit
bc31585a4a
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ class Help(commands.Cog):
|
|||
@commands.command(aliases=['h', '?'])
|
||||
async def help(self, ctx, page=1):
|
||||
"""Displays the help command"""
|
||||
em = discord.Embed()
|
||||
em.title = 'Help Command'
|
||||
em = discord.Embed(
|
||||
title = 'Help Command'
|
||||
)
|
||||
cog_list = [c for c in self.bot.cogs.keys()]
|
||||
page_count = math.ceil(len(cog_list) / 4)
|
||||
|
||||
|
|
Loading…
Reference in a new issue