Skip to content

Guys how can i modify the code that a particular guild id its blacklisted by default #193

Closed Answered by JustOptimize
blaze534new asked this question in Q&A
Discussion options

You must be logged in to vote

What do you want to achive?
If you want to just blacklist a guild you can do it by right-clicking on it and clicking Disable SHC or from the plugin settings.
If you want to sync between clients you can copy the config file

I'm kinda against editing the plugin since if an update comes your edits would be overridden.

But if you still belive that editing is the right way for you, you're editing the defaultSettings and it should work but only when generting a NEW settings file.
To override a setting you should foce it after the other settings are loaded like this

this.settings = Utilities.loadData(config.info.name, 'settings', defaultSettings);
this.settings['blacklistedGuilds']['YOUR_ID_HERE'] 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JustOptimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants