A discord server with 150k people whose identity or nation of origin are not verified, where only 8000 people voted. This is as illegitimate an election as they come. Come literally just have been elected by Russian (or any other) bots.
You'd be surprised, but there are numerous governments that claim to be democratic - while having a much weaker claim to democracy than "the current acting prime minister was elected by 8000 unverified randos in a snap election online".
Outside the comfy first world, the bar for government sanity can get extremely low.
It wasn’t an election. One of the more prominent youth groups involved in the protests used Discord to organize and decide internally which leader they should endorse and suggest to the president and army leadership. No one was directly elected on Discord.