Skip to content
Advertisement

How to check if member has role discord.py

I want to make a “warn” command and I want to check if member has role. My code:

JavaScript

Error:

JavaScript

Advertisement

Answer

The issue as InsertChessyLine it should be ctx.guild.roles instead of ctx.message.server.roles

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement