decord/source/modules/game_console/trackVoiceCallTransfer.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 10751
// Function ID: 10752
2026-07-20 16:05:17 +00:00
// Name: trackVoiceCallTransfer
2026-08-05 07:35:12 +00:00
// Dependencies: [1372, 4326, 4270, 676, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 10751 (trackVoiceCallTransfer)
2026-07-29 08:29:29 +00:00
import ensureGuildLoaded from "ensureGuildLoaded";
import createRTCConnection from "createRTCConnection";
import handleUpdate from "handleUpdate";
2026-07-23 10:11:24 +00:00
import { AnalyticEvents } from "ME";
2026-07-29 08:29:29 +00:00
const result = require("handleUpdate").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) {
let obj = importDefault(698);
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);
};