Files
discord-decomp/actions/native/CreateGuildActionCreators.tsx
T
2026-11-01 12:12:55 +02:00

20 lines
692 B
TypeScript

// Metro module 11847 (f11848).
import GuildChannelStore from "../../stores/GuildChannelStore";
import { InstantInviteSources } from "../../Constants";
import { showInstantInviteActionSheet } from "../../modules/instant_invite/native/InstantInviteUtils";
export function showInstantInviteModal(c19213_0) {
GuildChannelStore.addConditionalChangeListener(() => {
const defaultChannel = GuildChannelStore.getDefaultChannel(c19213_0);
let r9 = defaultChannel == null;
if (!r9) {
setImmediate(() => {
showInstantInviteActionSheet(defaultChannel, {
source: InstantInviteSources.GUILD_CREATE
});
});
r9 = false;
}
return r9;
});
}