Как сделать проверку определенной роли у пользователя и если ее нету выдать сообщение в discord.py?
1 ответ
@commands.command()
async def ping(self, ctx):
if discord.utils.get(ctx.guild.roles, id='role_id') not in ctx.author.roles:
return await ctx.send('You must have a role `RoleName`')