decord/source/modules/game_console/trackVoiceCallTransfer.tsx

39 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9890
// Function ID: 9891
2026-07-20 16:05:17 +00:00
// Name: trackVoiceCallTransfer
2026-08-24 06:08:38 +00:00
// Dependencies: [1391, 4544, 4546, 676, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 9890 (trackVoiceCallTransfer)
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import closure_2 from "ensureGuildLoaded" /* 1391 */;
import closure_3 from "createRTCConnection" /* 4544 */;
import closure_4 from "handleUpdate" /* 4546 */;
import { AnalyticEvents } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/game_console/trackVoiceCallTransfer.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function trackVoiceCallTransfer(arg0, arg1, sessionId) {
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
let str = "discord_client";
2026-07-29 08:29:29 +00:00
if (null != sessionId) {
sessionById = sessionById.getSessionById(sessionId);
2026-07-20 16:05:17 +00:00
let os;
2026-07-29 08:29:29 +00:00
if (sessionById != null) {
2026-07-20 16:05:17 +00:00
os = sessionById.clientInfo.os;
}
str = os;
}
2026-07-29 08:29:29 +00:00
obj = { source_platform: str, guild_id: null, channel_id: null, rtc_connection_id: null, target_platform: null };
channel = channel.getChannel(arg0);
2026-07-20 16:05:17 +00:00
let guild_id;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
guild_id = channel.guild_id;
}
2026-07-29 08:29:29 +00:00
obj[1] = guild_id;
obj[2] = arg0;
obj[3] = rTCConnectionId.getRTCConnectionId();
obj[4] = arg1;
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.VOICE_CALL_TRANSFER, obj);
};