You can submit an application online (on the Thai visa website thingy) and have it approved or declined. You can also submit one at an embassy (where the interpretations of the rules and procedures vary) and have it approved or declined. So there are two separate options. Right or wrong?
TLDR : Answer Summary
You can apply for a Thai visa online through the Thai visa website or submit your application in person at an embassy or consulate. However, the availability of the e-visa option depends on the country you are applying from, as not all countries support online applications.