Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'AutoShardedBot' object has no attribute '_bridge_commands'. #1800

Closed
3 tasks done
xGidor opened this issue Nov 25, 2022 · 1 comment · Fixed by #1802
Closed
3 tasks done

'AutoShardedBot' object has no attribute '_bridge_commands'. #1800

xGidor opened this issue Nov 25, 2022 · 1 comment · Fixed by #1802
Assignees
Labels
bug Something isn't working priority: high High Priority

Comments

@xGidor
Copy link

xGidor commented Nov 25, 2022

Summary

@bot.bridge_group fails to create a bridge command group.

Reproduction Steps

  1. Make a bridge group, not in a cog, but in the main bot file.
  2. put in your token
  3. start the bot
  4. it should fail

Minimal Reproducible Code

import discord
from discord.ext import commands
from discord.ext import bridge

intents = discord.Intents.all()

bot = bridge.AutoShardedBot(command_prefix=commands.when_mentioned_or("!"), intents=intents, auto_sync_commands=True)

@bot.event
async def on_ready():
    print(f"{bot.user} is ready and online!")

@bot.bridge_group(invoke_without_command=True, help="Showing categories for commands.")
@bridge.map_to("help", "Shows the basic help menu.")
async def help(ctx):
    e = discord.Embed(
        description="test",
    )
    await ctx.respond(embed=e)

bot.run("token")

Expected Results

The commands and the bridge group would work like it did in 2.2.2

Actual Results

It fails with an error., and the bot wont even start.

image

Intents

all

System Information

  • Python v3.11.0-final
  • py-cord v2.3.None-final (tried on the release version too)
  • aiohttp v3.8.3
  • system info: Windows 10 10.0.22000

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

Worked good in pycord 2.2.2 and on py 3.10.7
Updated to 3.11 and 2.3.0 uninstalled the any other python version other than 3.11 and still not works.
I also checked that python is added to the path, and it is.
Honestly i dont know what is happening here.

@xGidor xGidor added the unconfirmed bug A bug report that needs triaging label Nov 25, 2022
@Lulalaby Lulalaby added bug Something isn't working priority: high High Priority and removed unconfirmed bug A bug report that needs triaging labels Nov 25, 2022
@Middledot Middledot self-assigned this Nov 25, 2022
@BobDotCom
Copy link
Member

@Middledot mind checking this out and letting me know what you find?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: high High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants