You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The filter_commands(mapping[cog]) line returns a filtered list of commands.
Actual Results
The following error is generated:
Ignoring exception in command help:
Traceback (most recent call last):
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 178, in wrapped
ret = await coro(*args, **kwargs)
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/help.py", line 858, in command_callback
return await self.send_bot_help(mapping)
File "/home/dmytro/Documents/projects/minimal bot/./main.py", line 33, in send_bot_help
n = await self.filter_commands(mapping[cog])
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/help.py", line 604, in filter_commands
for cmd in iterator:
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/help.py", line 584, in <lambda>
else filter(lambda c: not c.hidden, prefix_commands)
AttributeError: 'BridgeCommand' object has no attribute 'hidden'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 347, in invoke
await ctx.command.invoke(ctx)
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 950, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/dmytro/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 187, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'BridgeCommand' object has no attribute 'hidden'
Intents
discord.Intents.default()
System Information
/home/dmytro/.local/lib/python3.10/site-packages/discord/__main__.py:47: DeprecationWarning: VersionInfo.releaselevel is deprecated since version 2.3, consider using release_level instead.
"- py-cord v{0.major}.{0.minor}.{0.micro}-{0.releaselevel}".format(version_info)
/home/dmytro/.local/lib/python3.10/site-packages/discord/__main__.py:49: DeprecationWarning: VersionInfo.releaselevel is deprecated since version 2.3, consider using release_level instead.
if version_info.releaselevel != "final":
- Python v3.10.6-final
- py-cord v2.3.2-final
- aiohttp v3.8.3
- system info: Linux 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022
Checklist
I have searched the open issues for duplicates.
I have shown the entire traceback, if possible.
I have removed my token from display, if visible.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Also when trying to call reload_extension() the methods under the bridge_command decorator trigger an error:
File "/usr/local/lib/python3.10/site-packages/discord/cog.py", line 1118, in reload_extension
self._remove_module_references(lib.__name__)
File "/usr/local/lib/python3.10/site-packages/discord/cog.py", line 722, in _remove_module_references
self.remove_cog(cog_name)
File "/usr/local/lib/python3.10/site-packages/discord/cog.py", line 706, in remove_cog
cog._eject(self)
File "/usr/local/lib/python3.10/site-packages/discord/cog.py", line 592, in _eject
bot.remove_command(command.name)
AttributeError: 'BridgeCommand' object has no attribute 'name'
Summary
I noticed that my custom help command broke recently. Specifically calling filter_commands(mapping[cog]) seems to be the problem here.
Reproduction Steps
Minimal Reproducible Code
Expected Results
The
filter_commands(mapping[cog])
line returns a filtered list of commands.Actual Results
The following error is generated:
Intents
discord.Intents.default()
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: