From 1ed64949aaca69ba0216f837ad295d948f61eb18 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Thu, 20 Apr 2023 03:41:55 +0200 Subject: [PATCH] Add require_var_positional=True to `[p]selfroleset add/remove` (#6084) --- 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 1fe8c720f..d5bfeb3a5 100644 --- a/redbot/cogs/admin/admin.py +++ b/redbot/cogs/admin/admin.py @@ -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.