misc
This commit is contained in:
parent
228d5d8dc6
commit
113190aceb
@ -47,7 +47,7 @@ class Logger {
|
||||
|
||||
this.shardingManager
|
||||
.on('shardCreate', (shard) => {
|
||||
this.write('debug', "Shard created.", shard);
|
||||
this.write('info', "Shard created.", shard);
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -102,14 +102,15 @@ class InvokerWrapper {
|
||||
const data = {
|
||||
content: str,
|
||||
files: opts.files,
|
||||
embeds: opts.embed ? [opts.embed] : [],
|
||||
embeds: opts.embed ? [opts.embed] : opts.embeds || [],
|
||||
disableMentions: opts.disableMentions
|
||||
};
|
||||
|
||||
if (opts.editReply) await this.editReply(data);
|
||||
else await this.channel.send(data).then((msg) => {
|
||||
if (opts.delete) msg.delete();
|
||||
});
|
||||
else await this.reply(data) //this.channel.send(data)
|
||||
.then((msg) => {
|
||||
if (opts.delete) msg.delete();
|
||||
});
|
||||
|
||||
return this.channel.awaitMessages({
|
||||
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) {
|
||||
super(client, {
|
||||
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',
|
||||
default: {
|
||||
channel: null,
|
||||
|
Loading…
Reference in New Issue
Block a user