This commit is contained in:
Erik 2022-12-02 11:05:40 +02:00
parent 4ce4ba5713
commit d73d1b4798
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
5 changed files with 13 additions and 5 deletions

View File

@ -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,

View File

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

View File

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

View File

@ -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, {

View File

@ -44,7 +44,6 @@ class Logger {
this.transport(message, { ...opts, type: 'status' });
}
}
module.exports = Logger;