mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-15 14:15:03 +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
|
@ -11,6 +11,7 @@ import {
|
|||
} from "../../../utils/templateSafeObjects";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
|
||||
interface LogMessageDeleteAutoData {
|
||||
message: SavedMessage;
|
||||
|
@ -32,8 +33,7 @@ export function logMessageDeleteAuto(pluginData: GuildPluginData<LogsPluginType>
|
|||
{
|
||||
userId: data.user.id,
|
||||
bot: data.user instanceof User ? data.user.bot : false,
|
||||
channel: data.channel.id,
|
||||
category: data.channel.parentId,
|
||||
...resolveChannelIds(data.channel),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue