From 314483e4f507340b040cfe750f4c14a9b4c2f737 Mon Sep 17 00:00:00 2001 From: LE BERRE Mickael Date: Mon, 18 May 2026 11:52:04 +0200 Subject: [PATCH] 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 --- cogs/pbchimera.py | 2 +- cogs/pbcvc.py | 2 +- cogs/pbhydra.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/pbchimera.py b/cogs/pbchimera.py index 4511fed..c13120a 100644 --- a/cogs/pbchimera.py +++ b/cogs/pbchimera.py @@ -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) diff --git a/cogs/pbcvc.py b/cogs/pbcvc.py index a5da460..ba9cd51 100644 --- a/cogs/pbcvc.py +++ b/cogs/pbcvc.py @@ -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) diff --git a/cogs/pbhydra.py b/cogs/pbhydra.py index b1fecfa..1697912 100644 --- a/cogs/pbhydra.py +++ b/cogs/pbhydra.py @@ -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)