decord/source/modules/activities/utils/trackApplicationOpen.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

20 lines
1.1 KiB
TypeScript

// Module ID: 9713
// Function ID: 9714
// Name: trackApplicationOpen
// Dependencies: [1074, 1241, 2]
// Exports: default
// Module 9713 (trackApplicationOpen)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/activities/utils/trackApplicationOpen.tsx");
export default function trackApplicationOpen(partyId) {
partyId = partyId.partyId;
({ type, source, userId, guildId, channelId, channelType, applicationId, messageId, locationObject, analyticsLocations, referrerId, inviterUserId, remoteJoinPlatform } = partyId);
const obj2 = { type, source, guild_id: guildId, channel_id: channelId, channel_type: channelType, application_id: applicationId, party_id: partyId, other_user_id: userId, message_id: messageId, location: locationObject, location_stack: analyticsLocations, referrer_id: referrerId, invite_inviter_id: inviterUserId, remote_join_platform: remoteJoinPlatform };
AnalyticsUtilsDefault.track(AnalyticEvents.APPLICATION_OPENED, obj2);
};