However, in season 2007–08, Aberdeen qualified for the UEFA Cup group section after beating Dnipro on away goals. They were drawn in Group B against Panathanaikos, Lokomotiv Moscow, Atlético Madrid and FC Copenhagen. Diamond scored in the 1–1 draw against Lokomotiv Moscow, Branislav Ivanovic scoring the equaliser. After qualifying from the group, they faced Bayern Munich in the last 32, drawing 2–2 at Pittodrie in the first leg. They went out on aggregate 7–3 after a 5–1 defeat in the Allianz Arena. On 18 January 2009, he achieved the feat of scoring twice against Celtic in an SPL match at Pittodrie which Aberdeen won 4–2. Diamond and team-mate Michael Paton were carpeted by Aberdeen for offensive remarks made on social media during the visit of Pope Benedict XVI to Scotland.