jih*_*doc 2 node.js discord discord.js
我如何在Discord.JS v13中模拟打字ex: Bot 正在打字..我知道,在 Discord.JS v12 中你可以轻松使用msg.channel.startTyping()或msg.channel.stopTyping(),但我没有没有找到任何适用于 v13 的结果。
使用:<channel>.sendTyping()
此方法会在 10 秒后或发送消息时自动停止输入。
使用示例:
await message.channel.sendTyping();
await message.channel.send("Hello World!");
Run Code Online (Sandbox Code Playgroud)