I've got some issues using discord.py. I'd like to use on_typing event for logging or something, but it doesn't work. I've tried to do this
intents = discord.Intents.default()
intents.typing = True
client = discord.Client(intents=intents)
Here is all code. on_ready and on_message works fine but on_typing. How to make it work?
@client.event
async def on_ready():
logger.info("But successfully runned!")
@client.event
async def on_typing(channel, user, when):
logger.info("{} is typing message in {} : {}".format(user.name, channel, when))
@client.event
async def on_message(message):
logger.info("{} has just sent {}".format(message.author, message.content))