decord/source/modules/content_inventory/reactionUtils.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

29 lines
1.3 KiB
TypeScript

// Module ID: 16506
// Function ID: 16507
// Name: sendMessageWithEmbed
// Dependencies: [7682, 7456, 2]
// Exports: sendMessageWithEmbed, sendMessageWithoutContentInventoryEntry
// Module 16506 (sendMessageWithEmbed)
import set from "set" /* 2 */;
import trackInviteDefault from "trackInvite" /* 7456 */;
import rebuildDefault from "rebuild" /* 7682 */;
const result = set.fileFinishedImporting("modules/content_inventory/reactionUtils.tsx");
export const sendMessageWithEmbed = function sendMessageWithEmbed(channel) {
channel = channel.channel;
({ content, entry, whenReady, doNotNotifyOnError, location: _location } = channel);
let obj = rebuildDefault;
const parsed = obj.parse(channel, content);
obj = { contentInventoryEntry: { unverified_content: entry }, doNotNotifyOnError, location: _location };
return trackInviteDefault.sendMessage(channel.id, parsed, whenReady, obj);
};
export const sendMessageWithoutContentInventoryEntry = function sendMessageWithoutContentInventoryEntry(channel) {
channel = channel.channel;
({ content, whenReady, doNotNotifyOnError, location: _location } = channel);
let obj = rebuildDefault;
const parsed = obj.parse(channel, content);
obj = { doNotNotifyOnError, location: _location };
return trackInviteDefault.sendMessage(channel.id, parsed, whenReady, obj);
};