This commit is contained in:
Erik 2022-07-25 01:10:04 +03:00
parent 48d7eb97e3
commit 862ef6879a
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
4 changed files with 8 additions and 4 deletions

View File

@ -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.
The command **{command}** can only be run by developers.
[INHIBITOR_GUILDONLY_ERROR]
The command **{command}** is only available in servers.

View File

@ -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'];

View File

@ -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']
}
]
});

View File

@ -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);