From 35e9fab7014dde8593235c6159ce8942606ed6bf Mon Sep 17 00:00:00 2001 From: Will Date: Fri, 1 Jun 2018 21:01:08 -0400 Subject: [PATCH] [V3 Admin] Add notes about case sensitivity for selfrole (#1762) --- redbot/cogs/admin/admin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/redbot/cogs/admin/admin.py b/redbot/cogs/admin/admin.py index 1e722b943..94a4032b8 100644 --- a/redbot/cogs/admin/admin.py +++ b/redbot/cogs/admin/admin.py @@ -302,6 +302,8 @@ class Admin: """ Add a role to yourself that server admins have configured as user settable. + + NOTE: The role is case sensitive! """ # noinspection PyTypeChecker await self._addrole(ctx, ctx.author, selfrole) @@ -310,6 +312,8 @@ class Admin: async def selfrole_remove(self, ctx: commands.Context, *, selfrole: SelfRole): """ Removes a selfrole from yourself. + + NOTE: The role is case sensitive! """ # noinspection PyTypeChecker await self._removerole(ctx, ctx.author, selfrole) @@ -319,6 +323,8 @@ class Admin: async def selfrole_add(self, ctx: commands.Context, *, role: discord.Role): """ Add a role to the list of available selfroles. + + NOTE: The role is case sensitive! """ async with self.conf.guild(ctx.guild).selfroles() as curr_selfroles: if role.id not in curr_selfroles: @@ -331,6 +337,8 @@ class Admin: async def selfrole_delete(self, ctx: commands.Context, *, role: SelfRole): """ Removes a role from the list of available selfroles. + + NOTE: The role is case sensitive! """ async with self.conf.guild(ctx.guild).selfroles() as curr_selfroles: curr_selfroles.remove(role.id)