Make a Discord Bot show “Bot is typing…” in Discord Chat (DISCORD.JS)

I am relatively new to making Discord bots and I have seen other bots do this but I want to know how you can make the “bot is typing…” effect at the bottom of the chat screen with Discord.JS .

There is a similar question here on Stack Overflow but that is in Discord.py and I need Discord.JS.

Thank you so much!

Answer

You can do this accessing message.channel.startTyping(count?: number)

reference: https://discord.js.org/#/docs/main/stable/class/TextChannel?scrollTo=startTyping

Leave a Reply

Your email address will not be published. Required fields are marked *