fixes
This commit is contained in:
parent
4ce4ba5713
commit
d73d1b4798
@ -340,8 +340,7 @@ class ModerationManager {
|
|||||||
guild: info.wrapper,
|
guild: info.wrapper,
|
||||||
channel: info.channel,
|
channel: info.channel,
|
||||||
executor: info.executor,
|
executor: info.executor,
|
||||||
reason: stripIndents`${reason}
|
reason: stripIndents`${reason}`, // *${wrapper.format('INFRACTION_AUTOMODESCALATION')}*
|
||||||
*${wrapper.format('INFRACTION_AUTOMODESCALATION')}*`,
|
|
||||||
duration: response.escalation.length ? response.escalation.length * 1000 : null, // info.duration,
|
duration: response.escalation.length ? response.escalation.length * 1000 : null, // info.duration,
|
||||||
data: info.data,
|
data: info.data,
|
||||||
points,
|
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) {
|
resolveBoolean(input) {
|
||||||
// Ensure input is a string
|
// Ensure input is a string
|
||||||
input = `${input}`.toLowerCase();
|
input = `${input}`.toLowerCase();
|
||||||
|
@ -92,7 +92,7 @@ class GuildLogger extends Observer {
|
|||||||
|
|
||||||
const settings = await guild.settings();
|
const settings = await guild.settings();
|
||||||
const { messages } = settings;
|
const { messages } = settings;
|
||||||
if (!messages.channel) return;
|
if (!messages.channel || !messages.enabled) return;
|
||||||
|
|
||||||
const logChannel = await guild.resolveChannel(messages.channel);
|
const logChannel = await guild.resolveChannel(messages.channel);
|
||||||
if (!logChannel) return;
|
if (!logChannel) return;
|
||||||
|
@ -43,7 +43,7 @@ class SelfroleSetting extends Setting {
|
|||||||
if (!roles && !channel && !text) return { error: true, index: 'SETTING_MISSING_ARG' };
|
if (!roles && !channel && !text) return { error: true, index: 'SETTING_MISSING_ARG' };
|
||||||
const { guild } = invoker;
|
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) {
|
if (roles) {
|
||||||
const response = await this._prompt(invoker, {
|
const response = await this._prompt(invoker, {
|
||||||
|
@ -44,7 +44,6 @@ class Logger {
|
|||||||
this.transport(message, { ...opts, type: 'status' });
|
this.transport(message, { ...opts, type: 'status' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Logger;
|
module.exports = Logger;
|
Loading…
Reference in New Issue
Block a user