def is_special():
async def predicate(ctx):
guild = bot.get_guild(365017572336731127)
if not (member := guild.get_member(ctx.author.id)):
return
return guild.get_role(129386605897151407) in member.roles
return commands.check(predicate)
@bot.command()
@is_special()
async def cmd(ctx, ...):
...