decord/source/modules/content_inventory/reactionUtils.tsx

26 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 16537
// Function ID: 16538
// Name: reactionUtils
// Dependencies: [7696, 7470, 2]
2026-07-20 16:05:17 +00:00
// Exports: sendMessageWithEmbed, sendMessageWithoutContentInventoryEntry
// Module 16537 (reactionUtils)
import MessageActionCreatorsDefault from "MessageActionCreators" /* 7470 */;
import MessageParserDefault from "MessageParser" /* 7696 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.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);
const parsed = MessageParserDefault.parse(channel, content);
return MessageActionCreatorsDefault.sendMessage(channel.id, parsed, whenReady, { contentInventoryEntry: { unverified_content: entry }, doNotNotifyOnError, location: _location });
2026-07-20 16:05:17 +00:00
};
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 });
2026-07-20 16:05:17 +00:00
};