The purpose of this study is to compare the efficacy of relamorelin with that of placebo in participants with diabetic gastroparesis (DG). At the end of the 40-week Treatment Period, participants will either continue on relamorelin or placebo for 6 additional weeks.