[3.4] Add require_var_positional=True to [p]selfroleset add/remove (#6084) (#6085)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Red-GitHubBot
2023-04-20 03:44:19 +02:00
committed by GitHub
parent 69f757758d
commit 5efbd19a3d

View File

@@ -453,7 +453,7 @@ class Admin(commands.Cog):
"""Manage selfroles."""
pass
@selfroleset.command(name="add")
@selfroleset.command(name="add", require_var_positional=True)
async def selfroleset_add(self, ctx: commands.Context, *roles: discord.Role):
"""
Add a role, or a selection of roles, to the list of available selfroles.
@@ -486,7 +486,7 @@ class Admin(commands.Cog):
await ctx.send(message)
@selfroleset.command(name="remove")
@selfroleset.command(name="remove", require_var_positional=True)
async def selfroleset_remove(self, ctx: commands.Context, *roles: SelfRole):
"""
Remove a role, or a selection of roles, from the list of available selfroles.