misc
This commit is contained in:
parent
228d5d8dc6
commit
113190aceb
@ -47,7 +47,7 @@ class Logger {
|
|||||||
|
|
||||||
this.shardingManager
|
this.shardingManager
|
||||||
.on('shardCreate', (shard) => {
|
.on('shardCreate', (shard) => {
|
||||||
this.write('debug', "Shard created.", shard);
|
this.write('info', "Shard created.", shard);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -102,14 +102,15 @@ class InvokerWrapper {
|
|||||||
const data = {
|
const data = {
|
||||||
content: str,
|
content: str,
|
||||||
files: opts.files,
|
files: opts.files,
|
||||||
embeds: opts.embed ? [opts.embed] : [],
|
embeds: opts.embed ? [opts.embed] : opts.embeds || [],
|
||||||
disableMentions: opts.disableMentions
|
disableMentions: opts.disableMentions
|
||||||
};
|
};
|
||||||
|
|
||||||
if (opts.editReply) await this.editReply(data);
|
if (opts.editReply) await this.editReply(data);
|
||||||
else await this.channel.send(data).then((msg) => {
|
else await this.reply(data) //this.channel.send(data)
|
||||||
if (opts.delete) msg.delete();
|
.then((msg) => {
|
||||||
});
|
if (opts.delete) msg.delete();
|
||||||
|
});
|
||||||
|
|
||||||
return this.channel.awaitMessages({
|
return this.channel.awaitMessages({
|
||||||
filter: (m) => m.author.id === this.user.id, max: 1, time: opts.time * 1000 || 30_000, errors: ['time']
|
filter: (m) => m.author.id === this.user.id, max: 1, time: opts.time * 1000 || 30_000, errors: ['time']
|
||||||
|
@ -6,7 +6,7 @@ class WordWatcher extends FilterSetting {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'wordwatcher',
|
name: 'wordwatcher',
|
||||||
description: 'Flag messages for potentially offensive content, useful when you don\'t want to outright filter out messages',
|
description: 'Flag messages for potentially offensive content instead of deleting automatically',
|
||||||
module: 'moderation',
|
module: 'moderation',
|
||||||
default: {
|
default: {
|
||||||
channel: null,
|
channel: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user