Shedinja cannot be obtained in Pokémon Diamond. It is exclusive to Generation III (Ruby, Sapphire, Emerald) via a unique evolution mechanic:
Diamond (Gen IV) lacks this mechanic for Nincada. Shedinja must be transferred via Pal Park from Gen III games (or later via Pokémon Bank/Home from compatible games).