Difference between revisions of "Bot Playground/Commands/startTyping"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Sends "typing" in chat to a specific user.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.startTyping(uuid); </syntaxhigh...")
 
 
Line 3: Line 3:
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Bot.startTyping(uuid);
+
Bot.startTyping(uuid, delay);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 11:09, 23 June 2023

Sends "typing" in chat to a specific user.

Bot.startTyping(uuid, delay);

Reference

This command accepts the following parameters:

Variable Required Description


Input:
uuid yes The uuid to send the "typing" in chat
delay optional The delay option to determine how long the "typing" in chat stays. Defaults to 15 seconds.
Output:
Function returns a Promise with the following data:
success bool true if command completed successfully
error string error string if command has failed

Examples

Bot.startTyping(1fd5b697-604c-4e34-91f9-f5c98cc46fa3, "20");