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

This commit is contained in:
Jakub Kuczys 2023-04-20 03:41:55 +02:00 committed by GitHub
parent 0d284cabe9
commit 1ed64949aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,7 +446,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.
@ -479,7 +479,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.