forked from Galactic/galactic-bot
fixes
This commit is contained in:
parent
48d7eb97e3
commit
862ef6879a
@ -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.
|
@ -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'];
|
||||
|
||||
|
@ -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']
|
||||
}
|
||||
]
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user