Answer the question
In order to leave comments, you need to log in
How to remove role from server in discord.py?
I want to remove user role on button click. Everything works fine for me, I get the role through id with
roles = discord.utils.get(ctx.author.guild.roles, id=role)
await self.bot.delete_role(roles)
Command raised an exception: AttributeError: 'Bot' object has no attribute 'delete_role'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question