mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45:02 +00:00
fix(logs): fix inconsistent thread/channel/category exclusions; add excluded_threads log channel option
This commit is contained in:
parent
218c31231e
commit
d472fd4fa6
32 changed files with 132 additions and 51 deletions
|
@ -5,6 +5,7 @@ import { log } from "../util/log";
|
|||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
|
||||
interface LogCleanData {
|
||||
mod: User;
|
||||
|
@ -24,8 +25,7 @@ export function logClean(pluginData: GuildPluginData<LogsPluginType>, data: LogC
|
|||
archiveUrl: data.archiveUrl,
|
||||
}),
|
||||
{
|
||||
channel: data.channel.id,
|
||||
category: data.channel.parentId,
|
||||
...resolveChannelIds(data.channel),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue