forked from Galactic/galactic-bot
fixes
This commit is contained in:
parent
4ce4ba5713
commit
d73d1b4798
@ -340,8 +340,7 @@ class ModerationManager {
|
||||
guild: info.wrapper,
|
||||
channel: info.channel,
|
||||
executor: info.executor,
|
||||
reason: stripIndents`${reason}
|
||||
*${wrapper.format('INFRACTION_AUTOMODESCALATION')}*`,
|
||||
reason: stripIndents`${reason}`, // *${wrapper.format('INFRACTION_AUTOMODESCALATION')}*
|
||||
duration: response.escalation.length ? response.escalation.length * 1000 : null, // info.duration,
|
||||
data: info.data,
|
||||
points,
|
||||
|
@ -377,6 +377,16 @@ class Resolver {
|
||||
|
||||
}
|
||||
|
||||
// async resolveAny(resolveables = [], strict, guild) {
|
||||
|
||||
// if (!resolveables.length) return Promise.resolve([]);
|
||||
// const resolvers = [this.resolveUser, this.resolveMember, this.resolveRole, this.resolveChannel];
|
||||
// for (const resolveable of resolveables) {
|
||||
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
resolveBoolean(input) {
|
||||
// Ensure input is a string
|
||||
input = `${input}`.toLowerCase();
|
||||
|
@ -92,7 +92,7 @@ class GuildLogger extends Observer {
|
||||
|
||||
const settings = await guild.settings();
|
||||
const { messages } = settings;
|
||||
if (!messages.channel) return;
|
||||
if (!messages.channel || !messages.enabled) return;
|
||||
|
||||
const logChannel = await guild.resolveChannel(messages.channel);
|
||||
if (!logChannel) return;
|
||||
|
@ -43,7 +43,7 @@ class SelfroleSetting extends Setting {
|
||||
if (!roles && !channel && !text) return { error: true, index: 'SETTING_MISSING_ARG' };
|
||||
const { guild } = invoker;
|
||||
|
||||
if (roles.value === 'list') return this.list(setting.roles, invoker, 'roles');
|
||||
if (roles?.value === 'list') return this.list(setting.roles, invoker, 'roles');
|
||||
|
||||
if (roles) {
|
||||
const response = await this._prompt(invoker, {
|
||||
|
@ -44,7 +44,6 @@ class Logger {
|
||||
this.transport(message, { ...opts, type: 'status' });
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
module.exports = Logger;
|
Loading…
Reference in New Issue
Block a user