decord/alpha/source/modules/guild_automod/AutomodRemovedContentManager.tsx
github-actions 52331fb8ae chore: update source for alpha 349.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
2026-09-30 07:29:52 +00:00

37 lines
1.5 KiB
TypeScript

// Module ID: 17319
// Function ID: 17320
// Name: AutomodRemovedContentManager
// Dependencies: [5086, 2099, 17320, 6735, 2]
// Module 17319 (AutomodRemovedContentManager)
import AutomodRemovedContentActionCreators from "AutomodRemovedContentActionCreators" /* 17320 */;
import MessageStore from "MessageStore" /* 5086 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2099 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6735 */;
require = fn;
function handleAutomodContentDeleted(message) {
message = message.message;
if (null == message.thread) {
if (null != message) {
if (null != MessageStore.getAutomodRemovalNotice(message.id)) {
if (message.channel_id !== SelectedChannelStore.getCurrentlySelectedChannelId()) {
const result = AutomodRemovedContentActionCreators.showRemovedMessageToast(tmp, message.channel_id);
}
}
}
}
const result1 = AutomodRemovedContentActionCreators.openRemovedContentModal(message);
}
const prototype = function AutomodRemovedContentManager() {
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.actions = { AUTO_MODERATION_CONTENT_DELETED: handleAutomodContentDeleted };
return applyArgumentsResult;
}.prototype;
class prototype extends tmp2 {
}
const prototype1 = new prototype();
const size = fn(2);
let result = size.fileFinishedImporting("modules/guild_automod/AutomodRemovedContentManager.tsx");
export default prototype1;