Removing errors in help_command.py.

This commit is contained in:
alwayscompiling
2022-07-03 10:47:06 -04:00
parent f23cd71647
commit cfde28ad4b
3 changed files with 14 additions and 3 deletions
+6 -2
View File
@@ -1,7 +1,11 @@
import config
"""
Help command. Copied from discord-bot-template.
"""
import nextcord
from nextcord.embeds import EmptyEmbed
from nextcord.ext import commands
import config # pylint: disable=import-error
class NewHelpCommand(commands.MinimalHelpCommand):
@@ -28,7 +32,7 @@ class NewHelpCommand(commands.MinimalHelpCommand):
if description:
embed.description = description
for cog, commands in mapping.items():
for cog, commands in mapping.items(): # pylint: disable=redefined-outer-name
name = "No Category" if cog is None else cog.qualified_name
filtered = await self.filter_commands(commands, sort=True)
if filtered: