decord/source/modules/content_inventory/reactionUtils.tsx
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

25 lines
1.3 KiB
TypeScript

// Module ID: 16760
// Function ID: 16761
// Name: reactionUtils
// Dependencies: [7878, 7652, 2]
// Exports: sendMessageWithEmbed, sendMessageWithoutContentInventoryEntry
// Module 16760 (reactionUtils)
import MessageActionCreatorsDefault from "MessageActionCreators" /* 7652 */;
import MessageParserDefault from "MessageParser" /* 7878 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/content_inventory/reactionUtils.tsx");
export const sendMessageWithEmbed = function sendMessageWithEmbed(channel) {
channel = channel.channel;
({ content, entry, whenReady, doNotNotifyOnError, location: _location } = channel);
const parsed = MessageParserDefault.parse(channel, content);
return MessageActionCreatorsDefault.sendMessage(channel.id, parsed, whenReady, { contentInventoryEntry: { unverified_content: entry }, doNotNotifyOnError, location: _location });
};
export const sendMessageWithoutContentInventoryEntry = function sendMessageWithoutContentInventoryEntry(channel) {
channel = channel.channel;
({ content, whenReady, doNotNotifyOnError, location: _location } = channel);
const parsed = MessageParserDefault.parse(channel, content);
return MessageActionCreatorsDefault.sendMessage(channel.id, parsed, whenReady, { doNotNotifyOnError, location: _location });
};