I'm creating a bot for my discord server. And when a user says a specific command the bot will give them a role
I've already tried finding other codes in the other stackoverflow questions and looked at the the Discord.Py Rewrite Documentation. Also for videos, they are all not discord.py rewrite
@bot.command()
async def recruitme(ctx):
user = ctx.message.author
role = discord.utils.get(user.guild.roles, name="Recruit")
await user.guild.roles(role)
I expect that I can learn how to code that a bot gives a role.