✨ hot reload everything
This commit is contained in:
parent
cdce856bbe
commit
c9acb0eec4
|
@ -61,7 +61,7 @@ class DevCog(Cog, name="Dev tools"):
|
|||
name="reload", aliases=["r"], usage=f"[{'|'.join(COGS_SHORTCUTS.values())}]"
|
||||
)
|
||||
@has_role(Role.DEV)
|
||||
async def reload_cmd(self, ctx, name):
|
||||
async def reload_cmd(self, ctx, name=None):
|
||||
"""
|
||||
(dev) Recharge une catégorie de commandes.
|
||||
|
||||
|
@ -69,6 +69,10 @@ class DevCog(Cog, name="Dev tools"):
|
|||
possibles: `teams`, `tirages`, `dev`.
|
||||
"""
|
||||
|
||||
names = [name] if name else list(COGS_SHORTCUTS.values())
|
||||
|
||||
for name in names:
|
||||
|
||||
name = self.full_cog_name(name)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue