You can add a decorator on the command to restrict it to only members with specific roles or permissions. The documentation for it is here. It would look like this:
@bot.command()
@commands.has_role('RoleName')
async def command_name():
Keep in mind that the RoleName
string you pass is case sensitive.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…