Chat app Discord, popular with gamers, is working on a public listing, according to people familiar with the matter.