diff --git a/src/structure/interfaces/Setting.js b/src/structure/interfaces/Setting.js index 070cc73..6c68b3c 100644 --- a/src/structure/interfaces/Setting.js +++ b/src/structure/interfaces/Setting.js @@ -48,7 +48,10 @@ class Setting extends Component { * @memberof Setting */ constructor(client, options = {}) { - if(!options) return null; + + if (!options) throw new Error(`No options provided to setting`); + if (!options.name) throw new Error(`Setting missing name`); + if (!options.module) throw new Error(`Missing module for ${options.name}`); super(client, { id: options.name,