diff options
Diffstat (limited to 'cogs')
-rwxr-xr-x | cogs/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index caa1fc5..e7ad05a 100755 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -316,7 +316,8 @@ class Admin(commands.Cog): @commands.command() @commands.check(is_botmaster) async def give_role(self, ctx, role_id): - await ctx.author.add_roles(int(role_id)) + the_role = ctx.guild.get_role(int(role_id)) + await ctx.author.add_roles(the_role) def setup(bot): |