Skip to main content

BotStoppingCallback

BotStoppingCallback = () => Promise<void>

Callback invoked during graceful bot server shutdown, before the server disconnects from Root's infrastructure. Use this to persist state or release resources.

The callback takes no parameters and returns a Promise<void>.

Returns

Promise<void>