In Thailand, travelers with a transit of less than 12 hours through Bangkok (Don Mueang International Airport or Suvarnabhumi Airport) and traveling with a asian airline may be exempt from visa. This means that they can transit through Thailand without needing a specific visa for their stay. less than 12 hours.
It is important to emphasize that nationals Pakistani  are required to apply for a specific visa for their entry into Thailand, regardless of the duration of their transit, the transit airport or the airline with which they are traveling.