So I'm trying to simulate a user typing in DMs by making the bot type in a channel at the same time.
This is for a ModMail feature. According to the docs, an example would be:
async with channel.typing():
# simulate something heavy
await asyncio.sleep(10)
await channel.send('done!')
Now, as this occurs in a on_raw_typing listener, is there a way to synchronize the duration of the user typing in DMs with the bot? As in, if the user types in DMs for 10 seconds, the bot 'types' in a channel for the same duration, 10 seconds.