decord/stable/source/actions/native/CreateGuildActionCreators.tsx
2026-10-06 22:12:49 +00:00

31 lines
1.1 KiB
TypeScript

// Module ID: 12155
// Function ID: 12156
// Name: CreateGuildActionCreators
// Dependencies: [4470, 1086, 9253, 2]
// Exports: showInstantInviteModal
// Module 12155 (CreateGuildActionCreators)
import Constants from "Constants" /* 1086 */;
import GuildChannelStore from "GuildChannelStore" /* 4470 */;
import size from "module_2" /* 2 */;
const InstantInviteSources = Constants.InstantInviteSources;
let result = size.fileFinishedImporting("actions/native/CreateGuildActionCreators.tsx");
export const showInstantInviteModal = function showInstantInviteModal(arg0) {
let closure_0 = arg0;
let result = GuildChannelStore.addConditionalChangeListener(() => {
const defaultChannel = GuildChannelStore.getDefaultChannel(closure_0);
let flag = null == defaultChannel;
if (!flag) {
const _setImmediate = setImmediate;
setImmediate(() => {
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;
});
};