21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
// Module ID: 9487
|
|
// Function ID: 9488
|
|
// Name: trackApplicationOpen
|
|
// Dependencies: [673, 695, 2]
|
|
// Exports: default
|
|
|
|
// Module 9487 (trackApplicationOpen)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 673 */;
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
|
|
|
|
const AnalyticEvents = ME.AnalyticEvents;
|
|
const result = set.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);
|
|
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 };
|
|
obj.track(AnalyticEvents.APPLICATION_OPENED, obj);
|
|
};
|