renameOption()
Popii / renameOption
Function: renameOption()
Section titled “Function: renameOption()”renameOption(
content,pluginName,oldKey,newKey):string
Defined in: migrations.ts:84
Renames an option key within a named plugin call.
Parameters
Section titled “Parameters”content
Section titled “content”string
pluginName
Section titled “pluginName”string
oldKey
Section titled “oldKey”string
newKey
Section titled “newKey”string
Returns
Section titled “Returns”string
Example
Section titled “Example”// Renames `sponsorblock:` to `sponsorBlock:` inside voicePlugin({...})renameOption(content, "voicePlugin", "sponsorblock", "sponsorBlock")