Client-side configuration
You can pass a config into theVoiceClient
constructor. Passing a config from the client is optional. A bot will always start with a default config if no config is passed from the client. Some RTVI implementations may also choose to ignore configs passed from the client, for security or other reasons.
Getting the bot config
getBotConfig()
Returns a Promise that resolves with the bot’s current configuration.Updating the bot config
updateConfig()
Update the bot’s config. Passing a partial config is fine. Only the individual options that are passed to theupdateConfig()
call will be updated. You can omit any services you don’t want to make changes to. You can omit any options within a service that you don’t want to change.
Returns a Promise that resolves with the full updated configuration.
VoiceClientConfigOption[] partial object with the new configuration