From bc31585a4ad241cdc3d6a1faa6ec97bd744d0ce4 Mon Sep 17 00:00:00 2001 From: ReperakPro Date: Sat, 16 Jan 2021 12:34:46 -0600 Subject: [PATCH] Declare embed properties on creation --- commands/help.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/help.py b/commands/help.py index b1c634a..9f3249f 100644 --- a/commands/help.py +++ b/commands/help.py @@ -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)