decord/stable/source/modules/guild_automod/AutomodRemovedContentManager.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

37 lines
1.5 KiB
TypeScript

// Module ID: 17738
// Function ID: 17739
// Name: AutomodRemovedContentManager
// Dependencies: [5008, 2095, 17739, 7395, 2]
// Module 17738 (AutomodRemovedContentManager)
import AutomodRemovedContentActionCreators from "AutomodRemovedContentActionCreators" /* 17739 */;
import MessageStore from "MessageStore" /* 5008 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2095 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7395 */;
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;