2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 15300
|
|
|
|
|
// Function ID: 116699
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: sendMessageWithEmbed
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [5914, 5685, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: sendMessageWithEmbed, sendMessageWithoutContentInventoryEntry
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 15300 (sendMessageWithEmbed)
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/content_inventory/reactionUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const sendMessageWithEmbed = function sendMessageWithEmbed(channel) {
|
|
|
|
|
let _location;
|
|
|
|
|
let content;
|
|
|
|
|
let doNotNotifyOnError;
|
|
|
|
|
let entry;
|
|
|
|
|
let whenReady;
|
|
|
|
|
channel = channel.channel;
|
|
|
|
|
({ content, entry, whenReady, doNotNotifyOnError, location: _location } = channel);
|
2026-07-25 08:10:48 +00:00
|
|
|
let obj = importDefault(5914);
|
2026-07-20 16:05:17 +00:00
|
|
|
const parsed = obj.parse(channel, content);
|
|
|
|
|
obj = { contentInventoryEntry: { unverified_content: entry }, doNotNotifyOnError, location: _location };
|
2026-07-25 08:10:48 +00:00
|
|
|
return importDefault(5685).sendMessage(channel.id, parsed, whenReady, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const sendMessageWithoutContentInventoryEntry = function sendMessageWithoutContentInventoryEntry(channel) {
|
|
|
|
|
let _location;
|
|
|
|
|
let content;
|
|
|
|
|
let doNotNotifyOnError;
|
|
|
|
|
let whenReady;
|
|
|
|
|
channel = channel.channel;
|
|
|
|
|
({ content, whenReady, doNotNotifyOnError, location: _location } = channel);
|
2026-07-25 08:10:48 +00:00
|
|
|
let obj = importDefault(5914);
|
2026-07-20 16:05:17 +00:00
|
|
|
const parsed = obj.parse(channel, content);
|
|
|
|
|
obj = { doNotNotifyOnError, location: _location };
|
2026-07-25 08:10:48 +00:00
|
|
|
return importDefault(5685).sendMessage(channel.id, parsed, whenReady, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|