Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Stop using BDs global variables #11

Open
aarondoet opened this issue Mar 28, 2020 · 0 comments
Open

Stop using BDs global variables #11

aarondoet opened this issue Mar 28, 2020 · 0 comments

Comments

@aarondoet
Copy link
Contributor

BetterDiscord currently still has global variables like bdplugins but they will get removed soon.
You are using the following globals:

  • bdplugins (1, 2, 3)

Also you should not be using global variables, just use let to create them. Then they won't be global and your plugin can still access them all.

Please also don't delete globals used by others, this will cause a problem when your plugin loads the library first but another one is also using it. (Just don't use the remote library at all. Tell the user that the library is missing and don't use the remote library instead.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant