@Thug ,
Even the current (stable) plugin was written this way - by basically seeing what the official client does and imitating it.
A while back, they (Discord) were able to more or less prevent all of the unofficial clients from connecting, no matter what. So they probably have some kind of "special" internal response that we haven't really been able to replicate.
They did eventually revert this change and allowed the connections again, but... we are very much at their mercy.
And using the plugin is absolutely against Discord's TOS. While they don't instaban you, they could do it at any point.
As time progresses and the API and the official client gets updated, our Miranda will stand out more and more until eventually either it will stop being able to connect (or we will get out accounts banned).
This is why the discord plugin has been deprecated; because attempts to keep it in line with the official client have caused the devs' discord accounts to get banned, so now there is no guarantee how long it will keep working nor what will happen to those who keep using it.
It is very unfortunate Discord took this stance. Be it as it may, Discord has now mostly replaced Skype (which previously replaced MSN), but just like all these, Discord has been making really unpopular changes to the API and service.
It was a sad day when I saw the plugin was deprecated, but I knew it was going to happen sooner or later.
My advice to you, if you use Discord in Miranda, do so only with the absolute acceptance of the fact you could get your account banned at any point in time, even if your Miranda doesn't do anything weird to the protocol.