for role_id in data["valid-roles"]: role = ctx.guild.get_role(role_id) await ticket_channel.set_permissions(role, send_messages=True,