Historically in the UK there were court jesters and fools so even in ancient times, humour was appreciated (and a safety valve. It was recognised that a court jester and/or fool could say things to their monarch nobody else would dare though I would be very surprised if a certain amount of self editing didn't happen here. Anyone with some sense would try to work out in advance just where the boundaries were to avoid that scenario of being carted off in chains to, at best, a dungeon and, at worst, a horrible death).
So what role does humour play in your fictional world? What counts as humour in your settings? Is it the same as on Earth? If not, how does it differ? Do all of the species on your world enjoy humour or does it bypass some species? What kind of humour lands your characters right in it (and who is the one offended enough to do that)?