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

Hi, I’ve already tried this method How to display "Discord Widget" in a dropdown button

Please can anyone help me to add discord widget + chat option with discord on forum?