Skip to content

Commit 8b34f8a

Browse files
committed
🐛 Fix duplicate bridge cmds in default help cmd
1 parent e4946ec commit 8b34f8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

discord/ext/commands/help.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from typing import TYPE_CHECKING
3333

3434
import discord.utils
35+
from discord.ext import bridge
3536

3637
from .core import Command, Group
3738
from .errors import CommandError
@@ -582,7 +583,9 @@ async def filter_commands(self, commands, *, sort=False, key=None):
582583
prefix_commands = [
583584
command
584585
for command in commands
585-
if not isinstance(command, discord.commands.ApplicationCommand)
586+
if not isinstance(
587+
command, (discord.commands.ApplicationCommand, bridge.BridgeExtCommand)
588+
)
586589
]
587590
iterator = (
588591
prefix_commands

0 commit comments

Comments
 (0)