34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
// Module ID: 15473
|
|
// Function ID: 15474
|
|
// Name: sendMessageWithEmbed
|
|
// Dependencies: [7036, 6811, 2]
|
|
// Exports: sendMessageWithEmbed, sendMessageWithoutContentInventoryEntry
|
|
|
|
// Module 15473 (sendMessageWithEmbed)
|
|
const result = require("set").fileFinishedImporting("modules/content_inventory/reactionUtils.tsx");
|
|
|
|
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);
|
|
let obj = importDefault(7036);
|
|
const parsed = obj.parse(channel, content);
|
|
obj = { contentInventoryEntry: { unverified_content: entry }, doNotNotifyOnError, location: _location };
|
|
return importDefault(6811).sendMessage(channel.id, parsed, whenReady, obj);
|
|
};
|
|
export const sendMessageWithoutContentInventoryEntry = function sendMessageWithoutContentInventoryEntry(channel) {
|
|
let _location;
|
|
let content;
|
|
let doNotNotifyOnError;
|
|
let whenReady;
|
|
channel = channel.channel;
|
|
({ content, whenReady, doNotNotifyOnError, location: _location } = channel);
|
|
let obj = importDefault(7036);
|
|
const parsed = obj.parse(channel, content);
|
|
obj = { doNotNotifyOnError, location: _location };
|
|
return importDefault(6811).sendMessage(channel.id, parsed, whenReady, obj);
|
|
};
|