From 5efbd19a3d7e85866c58380897ef30c51ea9d0ce Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Thu, 20 Apr 2023 03:44:19 +0200 Subject: [PATCH] [3.4] Add require_var_positional=True to `[p]selfroleset add/remove` (#6084) (#6085) Co-authored-by: Jakub Kuczys --- redbot/cogs/admin/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/admin/admin.py b/redbot/cogs/admin/admin.py index c2bbe1076..b0526c380 100644 --- a/redbot/cogs/admin/admin.py +++ b/redbot/cogs/admin/admin.py @@ -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.