decord/alpha/source/modules/guild_automod/AutomodRemovedContentManager.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

37 lines
1.5 KiB
TypeScript

// Module ID: 17837
// Function ID: 17838
// Name: AutomodRemovedContentManager
// Dependencies: [5049, 2098, 17838, 7451, 2]
// Module 17837 (AutomodRemovedContentManager)
import AutomodRemovedContentActionCreators from "AutomodRemovedContentActionCreators" /* 17838 */;
import MessageStore from "MessageStore" /* 5049 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2098 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7451 */;
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;