decord/source/modules/game_console/trackVoiceCallTransfer.tsx

39 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 9910
// Function ID: 9911
2026-07-20 16:05:17 +00:00
// Name: trackVoiceCallTransfer
2026-09-02 09:53:35 +00:00
// Dependencies: [1386, 4554, 4496, 673, 695, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-03 10:05:34 +00:00
// Module 9910 (trackVoiceCallTransfer)
2026-09-02 09:53:35 +00:00
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
import closure_2 from "ensureGuildLoaded" /* 1386 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "createRTCConnection" /* 4554 */;
import closure_4 from "handleUpdate" /* 4496 */;
2026-09-02 09:53:35 +00:00
import { AnalyticEvents } from "ME" /* 673 */;
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);
};