Declare embed properties on creation

This commit is contained in:
ReperakPro 2021-01-16 12:34:46 -06:00
parent 79073d4b62
commit bc31585a4a

View file

@ -14,8 +14,9 @@ class Help(commands.Cog):
@commands.command(aliases=['h', '?']) @commands.command(aliases=['h', '?'])
async def help(self, ctx, page=1): async def help(self, ctx, page=1):
"""Displays the help command""" """Displays the help command"""
em = discord.Embed() em = discord.Embed(
em.title = 'Help Command' title = 'Help Command'
)
cog_list = [c for c in self.bot.cogs.keys()] cog_list = [c for c in self.bot.cogs.keys()]
page_count = math.ceil(len(cog_list) / 4) page_count = math.ceil(len(cog_list) / 4)