Can anyone help me to add chat option of discord on forum?

If you want to allow people on the forum to directly chat with people on Discord, then I don’t think that’s possible. Discord is also not using an open standard, which makes this harder. My suggestion would be to start transition already to a Matrix.org instance and use Element as a client. I hope Discourse will launch a Matrix client one day. Then you can bridge Matrix to Discord and you have your communities linked.