fix: support multi-word usernames in pb lookup commands

Sans le *, discord.py tronquait les noms avec espaces au premier mot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LE BERRE Mickael 2026-05-18 11:52:04 +02:00
parent 1a37ec8838
commit 314483e4f5
3 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ class Pbchimera(commands.Cog):
self.bot = bot
@commands.command(name="pbchimera")
async def pbchimera(self, ctx, arg1: str = None, arg2: str = None):
async def pbchimera(self, ctx, arg1: str = None, *, arg2: str = None):
"""Commande !pbchimera avec gestion des difficultés"""
await handle_pb_command(ctx, 'chimera', arg1, arg2)

View file

@ -10,7 +10,7 @@ class Pbcvc(commands.Cog):
self.bot = bot
@commands.command(name="pbcvc")
async def pbcvc(self, ctx, target_user: str = None):
async def pbcvc(self, ctx, *, target_user: str = None):
"""Commande !pbcvc"""
await handle_pb_command(ctx, 'cvc', target_user)

View file

@ -10,7 +10,7 @@ class Pbhydra(commands.Cog):
self.bot = bot
@commands.command(name="pbhydra")
async def pbhydra(self, ctx, arg1: str = None, arg2: str = None):
async def pbhydra(self, ctx, arg1: str = None, *, arg2: str = None):
"""Commande !pbhydra avec gestion des difficultés"""
await handle_pb_command(ctx, 'hydra', arg1, arg2)