Mathbot doesn't seem to play so nicely with threads. Discords developer documentation states that bots should be updated to work with threads:
https://discord.com/developers/docs/topics/threads
But as it stands, auto-replacements and tex commands don't seem to work inside of threads.