diff --git a/src/localization/en_gb/general/en_gb_inhibitors.lang b/src/localization/en_gb/general/en_gb_inhibitors.lang index 0e0956e..130c94a 100644 --- a/src/localization/en_gb/general/en_gb_inhibitors.lang +++ b/src/localization/en_gb/general/en_gb_inhibitors.lang @@ -23,4 +23,7 @@ The command **{command}** requires the __bot__ to have permissions to use. *Missing: {missing}.* [INHIBITOR_RESTRICTED_ERROR] -The command **{command}** can only be run by developers. \ No newline at end of file +The command **{command}** can only be run by developers. + +[INHIBITOR_GUILDONLY_ERROR] +The command **{command}** is only available in servers. \ No newline at end of file diff --git a/src/structure/client/Resolver.js b/src/structure/client/Resolver.js index 88f0ac8..946c0f1 100644 --- a/src/structure/client/Resolver.js +++ b/src/structure/client/Resolver.js @@ -378,7 +378,8 @@ class Resolver { } resolveBoolean(input) { - input = input.toLowerCase(); + // Ensure input is a string + input = `${input}`.toLowerCase(); const truthy = ['on', 'true', 'yes', 'enable', 'y', 't']; const falsey = ['off', 'false', 'no', 'disable', 'n', 'f']; diff --git a/src/structure/components/commands/information/Info.js b/src/structure/components/commands/information/Info.js index ef46130..9ae2444 100644 --- a/src/structure/components/commands/information/Info.js +++ b/src/structure/components/commands/information/Info.js @@ -30,7 +30,7 @@ class InformationCommand extends SlashCommand { { name: ['user', 'role', 'channel'], type: ['USER', 'ROLE', 'CHANNEL'], - description: '' + description: ['The user to look up', 'The role to look up', 'The channel to look up'] } ] }); diff --git a/src/structure/components/observers/UtilityHook.js b/src/structure/components/observers/UtilityHook.js index 752481b..78dc52c 100644 --- a/src/structure/components/observers/UtilityHook.js +++ b/src/structure/components/observers/UtilityHook.js @@ -128,7 +128,7 @@ class UtilityHook extends Observer { const { guildWrapper: guild, user } = member; const settings = await guild.settings(); const setting = settings.welcomer; - if (!setting.enabled) return; + if (!setting.enabled || !setting.message) return; const channel = await user.createDM(); const message = this._replaceTags(setting.message, member);