Fix command group: use @commands.group decorator instead of Group()
This commit is contained in:
@@ -167,7 +167,11 @@ class Assistant(commands.Cog):
|
||||
# Commands
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
assistant = commands.Group("assistant", "AI assistant settings.", guild_only=True)
|
||||
@commands.group(name="assistant", invoke_without_command=True)
|
||||
@commands.guild_only()
|
||||
async def assistant(self, ctx: commands.Context):
|
||||
"""AI assistant settings."""
|
||||
await ctx.send_help(ctx.command)
|
||||
|
||||
@assistant.command(name="setkey")
|
||||
@checks.is_owner()
|
||||
|
||||
Reference in New Issue
Block a user