3232from typing import TYPE_CHECKING , Any
3333
3434import discord .utils
35- from discord .ext import bridge
3635
3736from .core import Command , Group
3837from .errors import CommandError
@@ -1111,13 +1110,15 @@ async def send_group_help(self, group):
11111110 await self .send_pages ()
11121111
11131112 async def send_cog_help (self , cog ):
1113+ from discord .ext .bridge import BridgeExtCommand
1114+
11141115 if cog .description :
11151116 self .paginator .add_line (cog .description , empty = True )
11161117
11171118 filtered = await self .filter_commands (
11181119 cog .get_commands (),
11191120 sort = self .sort_commands ,
1120- exclude = (bridge . BridgeExtCommand ,),
1121+ exclude = (BridgeExtCommand ,),
11211122 )
11221123 self .add_indented_commands (filtered , heading = self .commands_heading )
11231124
@@ -1355,6 +1356,8 @@ def get_category(command, *, no_category=no_category):
13551356 await self .send_pages ()
13561357
13571358 async def send_cog_help (self , cog ):
1359+ from discord .ext .bridge import BridgeExtCommand
1360+
13581361 bot = self .context .bot
13591362 if bot .description :
13601363 self .paginator .add_line (bot .description , empty = True )
@@ -1369,7 +1372,7 @@ async def send_cog_help(self, cog):
13691372 filtered = await self .filter_commands (
13701373 cog .get_commands (),
13711374 sort = self .sort_commands ,
1372- exclude = (bridge . BridgeExtCommand ,),
1375+ exclude = (BridgeExtCommand ,),
13731376 )
13741377 if filtered :
13751378 self .paginator .add_line (f"**{ cog .qualified_name } { self .commands_heading } **" )
0 commit comments