decord/source/modules/game_console/getXboxURIForChannel.tsx

54 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 9916
// Function ID: 9917
2026-07-20 16:05:17 +00:00
// Name: getXboxURIForChannel
2026-09-03 10:05:34 +00:00
// Dependencies: [1908, 4529, 4130, 1921, 9330, 673, 4674, 1233, 527, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-03 10:05:34 +00:00
// Module 9916 (getXboxURIForChannel)
2026-09-01 10:26:29 +00:00
import computeChannelName from "computeChannelName" /* 4674 */;
2026-09-02 09:53:35 +00:00
import closure_2 from "createGuildRecordFromRust" /* 1908 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "_detectH265HardwareDecode" /* 4529 */;
import closure_4 from "markAllUserIdListsStale" /* 4130 */;
2026-09-02 09:53:35 +00:00
import closure_5 from "mergeGuildAvatar" /* 1921 */;
2026-09-03 10:05:34 +00:00
import XBOX_URL_BASE from "XBOX_URL_BASE" /* 9330 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ XBOX_HANDOFF_SEARCH_PARAMS: closure_6, XBOX_URL_BASE: error } = XBOX_URL_BASE);
2026-08-24 06:08:38 +00:00
({ Endpoints: closure_8, ZERO_STRING_GUILD_ID: c9 } = ME);
const result = require("set").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
({ 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-08-24 06:08:38 +00:00
const obj = { guildId: tmp4, channelId: channelId.id, channelName: computeChannelName.computeChannelName(channelId, closure_5, closure_4), guildName: null, muted: null, deafened: null, nonce: null };
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) {
2026-09-02 09:53:35 +00:00
const intl = tmp5(1233).intl;
name = intl.string(tmp5(1233).t.LJpTRF);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = name;
2026-08-24 06:08:38 +00:00
obj[4] = closure_3.isSelfMute();
obj[5] = closure_3.isSelfDeaf();
2026-07-29 08:29:29 +00:00
obj[6] = nonce;
2026-07-20 16:05:17 +00:00
const str = closure_6(obj);
if (forQRCode) {
2026-09-02 09:53:35 +00:00
const aPIBaseURL = tmp5(527).getAPIBaseURL();
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal;
let combined = "" + aPIBaseURL + constants.XBOX_HANDOFF + "?" + str.toString();
2026-09-02 09:53:35 +00:00
const tmp5Result = tmp5(527);
2026-07-20 16:05:17 +00:00
} else {
const _HermesInternal = HermesInternal;
combined = "" + closure_7 + "?" + str.toString();
}
return combined;
};