How to log user roles discord.py code example
Example 1: discord py get user by id
user = bot.get_user(user_id)
Example 2: How to create role discord.py
guild = ctx.guild
await guild.create_role(name="role name")
user = bot.get_user(user_id)
guild = ctx.guild
await guild.create_role(name="role name")