Could someone send me an example of using bridge group command in a cog? I've tried everything and my cog isn't being loaded into my bot at all.
This is how I've implemented a portion of my relevant command. In this example, I'm trying to make a slash command "/create" with a subcommand "group"
class AdminOnlyCommands(commands.Cog):
def __init__(self, bot):
self.bot = bot
@bridge.bridge_group()
@bridge.map_to("group")
async def create (self, ctx: bridge.BridgeContext):
@create.bridge_command()
async def group(self, ctx: bridge.BridgeContext)
...
At the end of my cog file, I have this function.
def setup(bot):
bot.add_cog(AdminOnlyCommands(bot))```
and my main() file starts the bot as such:
```py
async def main():
bot.load_extension("cogs.create_command")
await bot.start(BOT_TOKEN)
asyncio.run(main())```
I get this error: ```discord.errors.ExtensionFailed: Extension 'cogs.create_command' raised an error: AttributeError: 'BridgeCommandGroup' object has no attribute 'bridge_command` ```
