decord/alpha/source/actions/DraftActionCreators.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

31 lines
1.2 KiB
TypeScript

// Module ID: 7369
// Function ID: 7370
// Name: DraftActionCreators
// Dependencies: [573, 2]
// Module 7369 (DraftActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("actions/DraftActionCreators.tsx");
export default {
clearDraft(id, ThreadSettings) {
DispatcherDefault.dispatch({ type: "DRAFT_CLEAR", channelId: id, draftType: ThreadSettings });
},
clearDraftCommand(channelId, draftType) {
DispatcherDefault.dispatch({ type: "DRAFT_COMMAND_CLEAR", channelId, draftType });
},
saveDraft(id, result1, ChannelMessage, toDraftCommandResult) {
DispatcherDefault.dispatch({ type: "DRAFT_SAVE", channelId: id, draft: result1, draftType: ChannelMessage, command: toDraftCommandResult });
},
changeDraft(id, draft, ChannelMessage, command) {
DispatcherDefault.dispatch({ type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage, command });
},
changeThreadSettings(id, draft) {
DispatcherDefault.dispatch({ type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft });
},
changeScheduledMessage(channelId, draft) {
DispatcherDefault.dispatch({ type: "SCHEDULED_MESSAGE_DRAFT_CHANGE", channelId, draft });
}
};