decord/source/modules/game_console/getXboxURIForChannel.tsx

60 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 9051
// Function ID: 9052
2026-07-20 16:05:17 +00:00
// Name: getXboxURIForChannel
2026-07-29 08:29:29 +00:00
// Dependencies: [1862, 4236, 3826, 1874, 8945, 676, 4380, 1236, 530, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 9051 (getXboxURIForChannel)
import createGuildRecordFromRust from "createGuildRecordFromRust";
import _detectH265HardwareDecode from "_detectH265HardwareDecode";
import upsertRelationship from "upsertRelationship";
import mergeGuildAvatar from "mergeGuildAvatar";
2026-07-23 10:11:24 +00:00
import XBOX_URL_BASE from "XBOX_URL_BASE";
import ME from "ME";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c9;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
let metroImportAll;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ XBOX_HANDOFF_SEARCH_PARAMS: closure_6, XBOX_URL_BASE: error } = XBOX_URL_BASE);
({ Endpoints: metroImportAll, ZERO_STRING_GUILD_ID: c9 } = ME);
const result = require("upsertRelationship").fileFinishedImporting("modules/game_console/getXboxURIForChannel.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function getXboxURIForChannel(channelId) {
2026-07-20 16:05:17 +00:00
let forQRCode;
let nonce;
({ nonce, forQRCode } = arg1);
2026-07-29 08:29:29 +00:00
const guildId = channelId.getGuildId();
2026-07-23 10:11:24 +00:00
guild = guild.getGuild(guildId);
2026-07-29 08:29:29 +00:00
let tmp4 = guildId;
if (guildId == null) {
tmp4 = closure_9;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj = { guildId: tmp4, channelId: channelId.id, channelName: null, guildName: null, muted: null, deafened: null, nonce: null };
obj[2] = require(4380) /* computeChannelName */.computeChannelName(channelId, mergeGuildAvatar, upsertRelationship);
2026-07-20 16:05:17 +00:00
let name;
2026-07-29 08:29:29 +00:00
if (guild != null) {
2026-07-20 16:05:17 +00:00
name = guild.name;
}
2026-07-29 08:29:29 +00:00
if (name == null) {
const intl = tmp5(1236).intl;
name = intl.string(tmp5(1236).t.LJpTRF);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = name;
obj[4] = _detectH265HardwareDecode.isSelfMute();
obj[5] = _detectH265HardwareDecode.isSelfDeaf();
obj[6] = nonce;
2026-07-20 16:05:17 +00:00
const str = closure_6(obj);
if (forQRCode) {
2026-07-29 08:29:29 +00:00
const aPIBaseURL = tmp5(530).getAPIBaseURL();
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal;
let combined = "" + aPIBaseURL + constants.XBOX_HANDOFF + "?" + str.toString();
2026-07-29 08:29:29 +00:00
const tmp5Result = tmp5(530);
2026-07-20 16:05:17 +00:00
} else {
const _HermesInternal = HermesInternal;
combined = "" + closure_7 + "?" + str.toString();
}
return combined;
};