#How do I handle errors globally on bridge commands
1 messages · Page 1 of 1 (latest)
you would use on_command_error for the text-based commands
There is one for bridge commands
on_bridge_command_error if Im not wrong
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\client.py", line 400, in _run_event
await coro(*args, **kwargs)
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\bot.py", line 389, in on_message
await self.process_commands(message)
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\bot.py", line 386, in process_commands
await self.invoke(ctx)
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\bridge\bot.py", line 144, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 951, in invoke
await self.prepare(ctx)
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 866, in prepare
if not await self.can_run(ctx):
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 1207, in can_run
return await discord.utils.async_all(predicate(ctx) for predicate in predicates) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\utils.py", line 699, in async_all
for elem in gen:
File "C:\Users\woohy\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 1207, in <genexpr>
return await discord.utils.async_all(predicate(ctx) for predicate in predicates) # type: ignore
^^^^^^^^^^^^^^
File "C:\Users\woohy\Documents\Projects\SmallDain\Bot\checks.py", line 12, in check
raise PermissionNee```
It seems like on_bridge_command_error also doesn't works on text-based commands
😦
are you using the master branch ?
I downloaded by using pip
.tag master
pip install git+https://github.com/Pycord-Development/pycord
the bridge are broken in the current main
oh then should I use the github version?
yes
I did this
still nothing changed