I have trouble with making an "add role" command in discord.py. I don\'t know what is wrong; it just doesn\'t work.
@client.command() @commands.has_
@bot.command(pass_context=True) async def giverole(ctx, user: discord.Member, role: discord.Role): await user.add_roles(role) await ctx.send(f"hey {ctx.author.name}, {user.name} has been giving a role called: {role.name}")
Let me know if it works!