The chord of a circle is any line segment whose endpoints are on the circle.
A diameter is also a chord. However, a chord is not necessarily a diameter. If the chord goes through the center of the circle, it is called a diameter.
The circle above has 3 chords. The green chord is a diameter since it goes through the center. However, the two black chords are not diameters.