I'm tweaking a discord bot I built with python and could use some help figuring out why this code is breaking. If a member of the server tries to call a command that is restricted to the roles Moderator and Hokage, I want the bot to send a message to the channel saying they do not have permission.
@client.command(description="Deletes a specific number of messages. If no amount is specified, 5 messages will be deleted.")
@commands.has_role('Moderator, Hokage')
async def purge(ctx, amount=5):
if role == ('Moderator, Hokage'):
await ctx.channel.purge(limit=amount)
else:
await ctx.send(f'You do not have permission to do that. ')