I want remove roles for user on command
@bot.command()
async def remove(ctx):
guild = bot.get_guild('server_id')
role = discord.utils.get(ctx.guild.roles, id='role_id')
await ctx.author.remove_roles(role)
But role not remove from user.
I want remove roles for user on command
@bot.command()
async def remove(ctx):
guild = bot.get_guild('server_id')
role = discord.utils.get(ctx.guild.roles, id='role_id')
await ctx.author.remove_roles(role)
But role not remove from user.
Copyright © 2021 Jogjafile Inc.
Your code is not indented right: