'Discord.py - Message, send empheral message (which only one person can see)

can anyone please tell me how to use slash commands and empheral messages with any module in Python discord. Example: https://i.stack.imgur.com/FGaFs.png

Thank you!



Solution 1:[1]

interaction.response.send_message("Text", ephemeral=True)

Notice that this can only be done as answer to an interaction.


If you want to know more read this answer that's almost a duplicate.

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 FLAK-ZOSO