'Spoiler messages in discord.py

I'm making a bot in discord.py, and I'm getting to the stage of making more complex commands and making my easier commands better and more flexible.

My most recent endeavor is my /say command. I'm making it able to do tts message and spoilers, but I can't find anything on the latter. Is it as simple as the tts or is it more complex?



Solution 1:[1]

You can mark your text as spoiler by putting <||||> around it. Example: ”<||hi||>”

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pixeled