decord/alpha/source/modules/activities/utils/trackApplicationOpen.tsx

21 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 8979
// Function ID: 8980
2026-07-20 16:05:17 +00:00
// Name: trackApplicationOpen
// Dependencies: [1074, 1241, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 8979 (trackApplicationOpen)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/activities/utils/trackApplicationOpen.tsx");
2026-07-20 16:05:17 +00:00
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);
2026-07-20 16:05:17 +00:00
};