mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +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
|
@ -13,6 +13,7 @@ import moment from "moment-timezone";
|
|||
import { ISavedMessageAttachmentData, SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
||||
import { UnknownUser, useMediaUrls } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
|
||||
interface LogMessageDeleteData {
|
||||
user: User | UnknownUser;
|
||||
|
@ -47,10 +48,9 @@ export function logMessageDelete(pluginData: GuildPluginData<LogsPluginType>, da
|
|||
}),
|
||||
{
|
||||
userId: data.user.id,
|
||||
channel: data.channel.id,
|
||||
category: data.channel.parentId,
|
||||
messageTextContent: data.message.data.content,
|
||||
bot: data.user instanceof User ? data.user.bot : false,
|
||||
...resolveChannelIds(data.channel),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue