3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

More fixes, waitForInteraction (replacement for waitForReaction)

This commit is contained in:
Dark 2021-06-02 23:41:05 +02:00
parent 1ee016e85e
commit a07ca88c13
13 changed files with 135 additions and 50 deletions

View file

@ -137,7 +137,7 @@ export async function log(pluginData: GuildPluginData<LogsPluginType>, type: Log
const batched = opts.batched ?? true;
const batchTime = opts.batch_time ?? 1000;
const cfg = pluginData.config.get();
const parse: MessageMentionTypes[] | undefined = cfg.allow_user_mentions ? ["users"] : undefined;
const parse: MessageMentionTypes[] = cfg.allow_user_mentions ? ["users"] : [];
if (batched) {
// If we're batching log messages, gather all log messages within the set batch_time into a single message