diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py index 4c2f1ab9fd..75dc6861f4 100644 --- a/discord/ext/commands/help.py +++ b/discord/ext/commands/help.py @@ -32,7 +32,6 @@ from typing import TYPE_CHECKING, Any import discord.utils -from discord.ext import bridge from .core import Command, Group from .errors import CommandError @@ -1111,13 +1110,15 @@ async def send_group_help(self, group): await self.send_pages() async def send_cog_help(self, cog): + from discord.ext.bridge import BridgeExtCommand + if cog.description: self.paginator.add_line(cog.description, empty=True) filtered = await self.filter_commands( cog.get_commands(), sort=self.sort_commands, - exclude=(bridge.BridgeExtCommand,), + exclude=(BridgeExtCommand,), ) self.add_indented_commands(filtered, heading=self.commands_heading) @@ -1355,6 +1356,8 @@ def get_category(command, *, no_category=no_category): await self.send_pages() async def send_cog_help(self, cog): + from discord.ext.bridge import BridgeExtCommand + bot = self.context.bot if bot.description: self.paginator.add_line(bot.description, empty=True) @@ -1369,7 +1372,7 @@ async def send_cog_help(self, cog): filtered = await self.filter_commands( cog.get_commands(), sort=self.sort_commands, - exclude=(bridge.BridgeExtCommand,), + exclude=(BridgeExtCommand,), ) if filtered: self.paginator.add_line(f"**{cog.qualified_name} {self.commands_heading}**")