I am writing my bot and I need that when I wrote for example: "Give @nickname @role" then the user was given the role that I specified? I write in Python
@client.comand(pass_contention = True)
async def giverole(ctx, member: discord.Member, role = discord.Role):
getrole = discord.utils.get(ctx.guild.roles id = role )
await member.add_roles( getrole)
like so.
all here https://discordpy.readthedocs.io/