0
votes

I want my discord bot to show the Typing message when he's typing, and when he sends a message, he stops typing. async with message.channel.typing doesn't seems to work, cause the bot continues to type even after the message is sent.

1

1 Answers

0
votes

You can use the Context.trigger_typing method:

@bot.command()
async def send_typing(ctx):
    await ctx.trigger_typing()
    await asyncio.sleep(10)
    await ctx.send('End of typing')

Reference: