#Bridge command does not work anymore after updating to newest pycord

1 messages · Page 1 of 1 (latest)

orchid cipher
#

Hello there,

my bridge commands does not work after i updated pycord from 2.2. to 2.3.2

traceback:

Failed to load extension cogs.dcCommands.
Traceback (most recent call last):
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 786, in _load_from_module_spec
    setup(self)
  File "C:\Users\xxx\Desktop\xxx\Python310\WiP\cogs\dcCommands.py", line 559, in setup
    bot.add_cog(DcCommands(bot))
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 656, in add_cog
    cog = cog._inject(self)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 545, in _inject
    bot.bridge_commands.append(command)
AttributeError: 'MainBot' object has no attribute 'bridge_commands'

The above exception was the direct cause of the following exception:



#
Traceback (most recent call last):
  File "C:\Users\xxx\Desktop\xxx\Python310\WiP\mainBot.py", line 66, in <module>
    bot.load_extension(extension)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 910, in load_extension
    self._load_from_module_spec(spec, name)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 791, in _load_from_module_spec
    raise errors.ExtensionFailed(key, e) from e
discord.errors.ExtensionFailed: Extension 'cogs.dcCommands' raised an error: AttributeError: 'MainBot' object has no attribute 'bridge_commands'
ERROR:root:Extension 'cogs.dcCommands' raised an error: AttributeError: 'MainBot' object has no attribute 'bridge_commands'
Traceback (most recent call last):
  File "C:\Users\xxxAppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 786, in _load_from_module_spec
    setup(self)
  File "C:\Users\xxx\Desktop\Drache\Python310\WiP\cogs\dcCommands.py", line 559, in setup
    bot.add_cog(DcCommands(bot))
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 656, in add_cog
    cog = cog._inject(self)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 545, in _inject
    bot.bridge_commands.append(command)
AttributeError: 'MainBot' object has no attribute 'bridge_commands'

The above exception was the direct cause of the following exception:

#

Traceback (most recent call last):
  File "C:\Users\xxx\Desktop\xxx\Python310\WiP\mainBot.py", line 66, in <module>
    bot.load_extension(extension)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 910, in load_extension
    self._load_from_module_spec(spec, name)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\cog.py", line 791, in _load_from_module_spec
    raise errors.ExtensionFailed(key, e) from e
discord.errors.ExtensionFailed: Extension 'cogs.dcCommands' raised an error: AttributeError: 'MainBot' object has no attribute 'bridge_commands'
vernal lance
#

did you initiate the bot class

orchid cipher
#

it is initiated with

bot = bridge.Bot(command_prefix=commands.when_mentioned_or('!'), case_insensitive=True, help_command=None,
intents=discord.Intents.all())

trim shoal
#

Can you show the command?