This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,23 @@
// Metro module 9510 (f9511).
import GuildScheduledEventStore from "../GuildScheduledEventStore";
import { handleNSFWGuildInvite } from "../../age_gate/native/AgeGateUtils";
import { isGuildScheduledEventInviteEmbed } from "../../instant_invite/InviteTypeUtils";
import InstantInviteActionCreators from "../../../actions/InstantInviteActionCreators";
import { transitionToEventDetailsFromInvite } from "./GuildScheduledEventModalActionCreators";
export default function handleAcceptEventInstantInvite(a0) {
if (!handleNSFWGuildInvite(a0) && isGuildScheduledEventInviteEmbed(a0) && a0.code != null) {
const id = a0.guild_scheduled_event?.id;
const guildScheduledEvent = GuildScheduledEventStore.getGuildScheduledEvent(id);
if (guildScheduledEvent != null) {
InstantInviteActionCreators.acceptInvite({
inviteKey: a0.code,
context: {
location: "Guild Scheduled Event Invite Button Embed"
},
callback: () => {
transitionToEventDetailsFromInvite(guildScheduledEvent);
}
});
}
}
};