Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit 5849208

Browse files
Remove redundant defaultSettings (#145)
defaultSettings is already defined in config.js and the problem of people deleting their guild settings does not affect config.js. Why not just reference defaultSettings from the config?
1 parent 82d2eeb commit 5849208

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

modules/functions.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,7 @@ module.exports = (client) => {
3737
// THIS IS HERE BECAUSE SOME PEOPLE DELETE ALL THE GUILD SETTINGS
3838
// And then they're stuck because the default settings are also gone.
3939
// So if you do that, you're resetting your defaults. Congrats.
40-
const defaultSettings = {
41-
"prefix": "~",
42-
"modLogChannel": "mod-log",
43-
"modRole": "Moderator",
44-
"adminRole": "Administrator",
45-
"systemNotice": "true",
46-
"welcomeChannel": "welcome",
47-
"welcomeMessage": "Say hello to {{user}}, everyone! We all need a warm welcome sometimes :D",
48-
"welcomeEnabled": "false"
49-
};
40+
const defaultSettings = client.config.defaultSettings
5041

5142
// getSettings merges the client defaults with the guild settings. guild settings in
5243
// enmap should only have *unique* overrides that are different from defaults.

0 commit comments

Comments
 (0)