32
32
from typing import TYPE_CHECKING , Any
33
33
34
34
import discord .utils
35
- from discord .ext import bridge
36
35
37
36
from .core import Command , Group
38
37
from .errors import CommandError
@@ -1111,13 +1110,15 @@ async def send_group_help(self, group):
1111
1110
await self .send_pages ()
1112
1111
1113
1112
async def send_cog_help (self , cog ):
1113
+ from discord .ext .bridge import BridgeExtCommand
1114
+
1114
1115
if cog .description :
1115
1116
self .paginator .add_line (cog .description , empty = True )
1116
1117
1117
1118
filtered = await self .filter_commands (
1118
1119
cog .get_commands (),
1119
1120
sort = self .sort_commands ,
1120
- exclude = (bridge . BridgeExtCommand ,),
1121
+ exclude = (BridgeExtCommand ,),
1121
1122
)
1122
1123
self .add_indented_commands (filtered , heading = self .commands_heading )
1123
1124
@@ -1355,6 +1356,8 @@ def get_category(command, *, no_category=no_category):
1355
1356
await self .send_pages ()
1356
1357
1357
1358
async def send_cog_help (self , cog ):
1359
+ from discord .ext .bridge import BridgeExtCommand
1360
+
1358
1361
bot = self .context .bot
1359
1362
if bot .description :
1360
1363
self .paginator .add_line (bot .description , empty = True )
@@ -1369,7 +1372,7 @@ async def send_cog_help(self, cog):
1369
1372
filtered = await self .filter_commands (
1370
1373
cog .get_commands (),
1371
1374
sort = self .sort_commands ,
1372
- exclude = (bridge . BridgeExtCommand ,),
1375
+ exclude = (BridgeExtCommand ,),
1373
1376
)
1374
1377
if filtered :
1375
1378
self .paginator .add_line (f"**{ cog .qualified_name } { self .commands_heading } **" )
0 commit comments