Skip to content

Fix API compatibility for modern BetterDiscord versions#3

Open
prod-broke-again wants to merge 1 commit intoD4n13l3k00:masterfrom
prod-broke-again:api-compatibility-fix
Open

Fix API compatibility for modern BetterDiscord versions#3
prod-broke-again wants to merge 1 commit intoD4n13l3k00:masterfrom
prod-broke-again:api-compatibility-fix

Conversation

@prod-broke-again
Copy link
Copy Markdown

Replace deprecated BdApi.findModuleByProps with BdApi.Webpack.getStore
Replace BdApi.loadData/saveData with BdApi.Data.load/save
Replace BdApi.alert with BdApi.UI.alert

This fixes TypeError issues when loading the plugin in current BetterDiscord versions.

- Replace deprecated BdApi.findModuleByProps with BdApi.Webpack.getStore
- Replace BdApi.loadData/saveData with BdApi.Data.load/save
- Replace BdApi.alert with BdApi.UI.alert

This fixes TypeError issues when loading the plugin in current BetterDiscord versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant