🀫 On_whisper

🀫 On_whisper

Added on version 23.1.0b0
on_whisper(self, user: User, message: str) -> None Called when a whisper message is received.

βš™οΈ Use cases

This method can be used to get all the messages whispered to the bot
async def on_whisper(self, user: User, message: str) -> None: print(f"{user.username} whispered: {message}")
In this example we will print on the terminal all messagens sent on whisper to the bot:
notion image
notion image
Β 

Β 
Built with Potion.so