I just want to know how can I play d&d on discord
what are you talking about?
You can do so in conjunction with Roll20.com and dndbeyond.com.