Highlight the text before sending it, and click the Eye icon that pops up in the floating formatting menu. Once you hit send, the text will appear as a black bar that others have to click to reveal!
To hide text behind a spoiler warning on Discord, simply put two vertical bars on both sides: ||like this||! Text effects like this certainly create a bit of mystery for the person who receives the message.