[Admin] Fix [p]addrole error when a hierarchy issue occurs (#1995)

This commit is contained in:
Toby Harradine 2018-08-11 12:11:15 +10:00 committed by GitHub
parent f44ea8b749
commit 75ed749cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ class Admin:
# noinspection PyTypeChecker # noinspection PyTypeChecker
await self._addrole(ctx, user, rolename) await self._addrole(ctx, user, rolename)
else: else:
await self.complain(ctx, USER_HIERARCHY_ISSUE, member=ctx.author) await self.complain(ctx, USER_HIERARCHY_ISSUE, member=ctx.author, role=rolename)
@commands.command() @commands.command()
@commands.guild_only() @commands.guild_only()