Skip to content

renameOption()

Popii


Popii / renameOption

renameOption(content, pluginName, oldKey, newKey): string

Defined in: migrations.ts:84

Renames an option key within a named plugin call.

string

string

string

string

string

// Renames `sponsorblock:` to `sponsorBlock:` inside voicePlugin({...})
renameOption(content, "voicePlugin", "sponsorblock", "sponsorBlock")