2026-10-06 22:12:49 +00:00
|
|
|
// Module ID: 11042
|
|
|
|
|
// Function ID: 11043
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: retrySendMessage
|
2026-10-06 22:12:49 +00:00
|
|
|
// Dependencies: [4830, 6880, 8709, 5440, 8607, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
// Module 11042 (retrySendMessage)
|
|
|
|
|
import MessageConstants from "MessageConstants" /* 4830 */;
|
|
|
|
|
import MessageActionCreatorsDefault from "MessageActionCreators" /* 6880 */;
|
|
|
|
|
import handleUploadAttachmentErrors from "handleUploadAttachmentErrors" /* 8607 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const require = globalThis.__r;
|
2026-10-06 22:12:49 +00:00
|
|
|
let _require;
|
2026-09-18 20:18:48 +00:00
|
|
|
|
|
|
|
|
const MessageSendLocation = MessageConstants.MessageSendLocation;
|
|
|
|
|
let result = size.fileFinishedImporting("modules/messages/retrySendMessage.native.tsx");
|
|
|
|
|
|
|
|
|
|
export default function retrySendMessage(id, id2, arr) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let content;
|
|
|
|
|
let flags;
|
|
|
|
|
let guildId;
|
|
|
|
|
let nonce;
|
|
|
|
|
let tts;
|
2026-09-18 20:18:48 +00:00
|
|
|
_require = id;
|
|
|
|
|
let obj = arg3;
|
|
|
|
|
if (arg3 === undefined) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
let obj2 = MessageActionCreatorsDefault;
|
|
|
|
|
obj2.deleteMessage(id.id, id2.id, true);
|
2026-09-18 20:18:48 +00:00
|
|
|
if (id2.isCommandType()) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const tmp18 = null != id2.interactionData && null != obj.applicationId;
|
|
|
|
|
if (tmp18) {
|
|
|
|
|
const obj5 = require("executeCommand");
|
|
|
|
|
obj5.retryCommandMessage(id2, id, obj);
|
2026-09-18 20:18:48 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const messageReference = id2.messageReference;
|
|
|
|
|
let mapped;
|
|
|
|
|
({ content, tts, flags, nonce } = id2);
|
|
|
|
|
if (arr != null) {
|
|
|
|
|
mapped = arr.map((on) => {
|
|
|
|
|
let fromJsonResult = on;
|
|
|
|
|
if (null == on.on) {
|
|
|
|
|
const CloudUpload = guildId(dependencyMap[3]).CloudUpload;
|
|
|
|
|
fromJsonResult = CloudUpload.fromJson(on);
|
|
|
|
|
}
|
|
|
|
|
return fromJsonResult;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
id = id.id;
|
2026-10-06 22:12:49 +00:00
|
|
|
const sendMessage = MessageActionCreatorsDefault.sendMessage;
|
2026-09-18 20:18:48 +00:00
|
|
|
const obj3 = { content, tts, invalidEmojis: [], validNonShortcutEmojis: [] };
|
2026-10-06 22:12:49 +00:00
|
|
|
const obj4 = {
|
|
|
|
|
nonce,
|
|
|
|
|
flags,
|
|
|
|
|
messageReference,
|
|
|
|
|
location: MessageSendLocation.RETRY,
|
|
|
|
|
attachmentsToUpload: mapped,
|
|
|
|
|
onAttachmentUploadError(file, code, reason) {
|
|
|
|
|
const obj = handleUploadAttachmentErrors;
|
|
|
|
|
const obj2 = { file, guildId: guildId.getGuildId(), analyticsLocations: [], code, reason };
|
|
|
|
|
const result = obj.handleUploadMessageAttachmentsErrors(obj2);
|
|
|
|
|
}
|
2026-09-18 20:18:48 +00:00
|
|
|
};
|
2026-10-06 22:12:49 +00:00
|
|
|
const tmpResult = MessageActionCreatorsDefault;
|
|
|
|
|
const merged = Object.assign(obj);
|
|
|
|
|
sendMessage(id, obj3, undefined, obj4);
|
2026-09-18 20:18:48 +00:00
|
|
|
}
|
|
|
|
|
};
|