Skip to content

Can't set custom name for bridge group #1628

@solaluset

Description

@solaluset

Summary

@bridge_group(name="name") gives error

Reproduction Steps

Create bridge group with a name=

Minimal Reproducible Code

@bot.bridge_group(name="test")
async def _test(ctx):
    await ctx.respond("aaa")

Expected Results

Command registration

Actual Results

Traceback (most recent call last):
  File "D:\coding\DandelionMusic\run.py", line 37, in <module>
    async def _test(ctx):
  File "D:\coding\dandelion_env\lib\site-packages\discord\ext\bridge\bot.py", line 88, in decorator
    result = bridge_group(**kwargs)(func)
  File "D:\coding\dandelion_env\lib\site-packages\discord\ext\bridge\core.py", line 329, in decorator
    return BridgeCommandGroup(callback, **kwargs)
  File "D:\coding\dandelion_env\lib\site-packages\discord\ext\bridge\core.py", line 280, in __init__
    self.slash_variant: BridgeSlashGroup = BridgeSlashGroup(callback, self.ext_variant.name, *args, **kwargs)
  File "D:\coding\dandelion_env\lib\site-packages\discord\ext\bridge\core.py", line 88, in __init__
    super().__init__(*args, **kwargs)
TypeError: __init__() got multiple values for argument 'name'

Intents

default + message_content

System Information

  • Python v3.9.9-final
  • py-cord v2.1.3-final
  • aiohttp v3.8.1
  • system info: Windows 10 10.0.17763

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions