Not all Bettas like tankmates
Bettas are known for their territorial and aggressive nature, especially males. And so, if you plan to add them in a community tank, make you the tank is big enough, has ample hiding space, and the other fishes have a peaceful temperament and are of a similar size.