decord/stable/source/actions/native/CreateGuildActionCreators.tsx

32 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 12155
// Function ID: 12156
// Name: CreateGuildActionCreators
2026-10-06 22:12:49 +00:00
// Dependencies: [4470, 1086, 9253, 2]
// Exports: showInstantInviteModal
2026-10-06 22:12:49 +00:00
// Module 12155 (CreateGuildActionCreators)
import Constants from "Constants" /* 1086 */;
import GuildChannelStore from "GuildChannelStore" /* 4470 */;
import size from "module_2" /* 2 */;
2026-10-06 22:12:49 +00:00
const InstantInviteSources = Constants.InstantInviteSources;
let result = size.fileFinishedImporting("actions/native/CreateGuildActionCreators.tsx");
export const showInstantInviteModal = function showInstantInviteModal(arg0) {
2026-10-06 22:12:49 +00:00
let closure_0 = arg0;
let result = GuildChannelStore.addConditionalChangeListener(() => {
2026-10-06 22:12:49 +00:00
const defaultChannel = GuildChannelStore.getDefaultChannel(closure_0);
let flag = null == defaultChannel;
if (!flag) {
const _setImmediate = setImmediate;
setImmediate(() => {
2026-10-06 22:12:49 +00:00
const obj = closure_2_0(closure_2_1[2]);
const obj2 = { source: constants.GUILD_CREATE };
const result = obj.showInstantInviteActionSheet(defaultChannel, obj2);
});
flag = false;
}
return flag;
});
};