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

22 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10701
// Function ID: 10702
2026-07-20 16:05:17 +00:00
// Name: trackApplicationOpen
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 10701 (trackApplicationOpen)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const AnalyticEvents = ME.AnalyticEvents;
const result = set.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);
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
obj = { 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 };
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.APPLICATION_OPENED, obj);
};