DS9, despite its reputation as the "dark Star Trek" was actually very comedic. There were the annual Ferengi comedy episodes, plus most episodes usually had comedic moments or brilliant one-liners.
Although word is the other shows were actually discouraged by Paramount to have comedy (DS9 being the show they didn't care enough about to interfere with). I think I remember hearing once someone high-up at Paramount said a franchise like Star Trek which attracts actors of Patrick Stewart's calibre needs to be treated with a regal dignity and can't afford to do comedy.
But hey, it's well known Paramount's suits just don't understand Trek.