decord/source/modules/activities/trackActivityProblem.tsx

54 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16667
// Function ID: 16668
2026-07-20 16:05:17 +00:00
// Name: trackActivityProblem
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 16667 (trackActivityProblem)
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/trackActivityProblem.tsx");
2026-07-20 16:05:17 +00:00
export default function trackActivityProblem(arg0) {
({ channel, activityApplication, analyticsData } = arg0);
({ problem, embeddedActivityLocation, feedback } = arg0);
if (analyticsData === undefined) {
analyticsData = {};
}
({ rating, location: _location } = arg0);
if (rating === undefined) {
rating = null;
}
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-29 08:29:29 +00:00
obj = { reason: problem, guild_id: null, channel_id: null, application_id: null, application_name: null, location: null, rating: null, feedback: null, embedded_activity_location_kind: null, rtc_connection_id: null, media_session_id: null };
2026-07-20 16:05:17 +00:00
let guildId;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
guildId = channel.getGuildId();
}
2026-07-29 08:29:29 +00:00
obj[1] = guildId;
2026-07-20 16:05:17 +00:00
let id;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
id = channel.id;
}
2026-07-29 08:29:29 +00:00
obj[2] = id;
2026-07-20 16:05:17 +00:00
let id1;
2026-07-29 08:29:29 +00:00
if (activityApplication != null) {
2026-07-20 16:05:17 +00:00
id1 = activityApplication.id;
}
2026-07-29 08:29:29 +00:00
obj[3] = id1;
2026-07-20 16:05:17 +00:00
let name;
2026-07-29 08:29:29 +00:00
if (activityApplication != null) {
2026-07-20 16:05:17 +00:00
name = activityApplication.name;
}
2026-07-29 08:29:29 +00:00
obj[4] = name;
obj[5] = _location;
obj[6] = rating;
obj[7] = feedback;
obj[8] = embeddedActivityLocation.kind;
({ rtc_connection_id: obj2[9], media_session_id: obj2[10] } = analyticsData);
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.ACTIVITY_REPORT_PROBLEM, obj);
};