decord/source/modules/content_inventory/reactionUtils.tsx

30 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15828
// Function ID: 15829
2026-07-20 16:05:17 +00:00
// Name: sendMessageWithEmbed
2026-08-24 06:08:38 +00:00
// Dependencies: [7474, 7465, 2]
2026-07-20 16:05:17 +00:00
// Exports: sendMessageWithEmbed, sendMessageWithoutContentInventoryEntry
2026-08-24 06:08:38 +00:00
// Module 15828 (sendMessageWithEmbed)
import set from "set" /* 2 */;
import trackInviteDefault from "trackInvite" /* 7465 */;
import rebuildDefault from "rebuild" /* 7474 */;
const result = set.fileFinishedImporting("modules/content_inventory/reactionUtils.tsx");
2026-07-20 16:05:17 +00:00
export const sendMessageWithEmbed = function sendMessageWithEmbed(channel) {
channel = channel.channel;
({ content, entry, whenReady, doNotNotifyOnError, location: _location } = channel);
2026-08-24 06:08:38 +00:00
let obj = rebuildDefault;
2026-07-20 16:05:17 +00:00
const parsed = obj.parse(channel, content);
obj = { contentInventoryEntry: { unverified_content: entry }, doNotNotifyOnError, location: _location };
2026-08-24 06:08:38 +00:00
return trackInviteDefault.sendMessage(channel.id, parsed, whenReady, obj);
2026-07-20 16:05:17 +00:00
};
export const sendMessageWithoutContentInventoryEntry = function sendMessageWithoutContentInventoryEntry(channel) {
channel = channel.channel;
({ content, whenReady, doNotNotifyOnError, location: _location } = channel);
2026-08-24 06:08:38 +00:00
let obj = rebuildDefault;
2026-07-20 16:05:17 +00:00
const parsed = obj.parse(channel, content);
obj = { doNotNotifyOnError, location: _location };
2026-08-24 06:08:38 +00:00
return trackInviteDefault.sendMessage(channel.id, parsed, whenReady, obj);
2026-07-20 16:05:17 +00:00
};