focusChannel( )

Expands the chatbox and focuses it on the specified chat channel.

The focusChannel() function returns a Promise that is resolved when the chatbox focuses on the specified channel.

You can focus on a channel by specifying one of the following:

  • Channel ID: Focus on the channel with the specified ID. type is ignored.
  • Type: Focus on the channel of the specified type. Currently, only type Business is supported.
Method Declaration
Method Parameters

Channel information specifying which channel to focus on.

Was this helpful?