I was searching among the questions of the users to find my own question before posting on this topic. I found the code here: How can I embed messages using a Discord bot?.