decord/beta/source/modules/frames/utils/getFrameSurfaceQueryParams.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

30 lines
832 B
TypeScript

// Module ID: 16985
// Function ID: 16986
// Name: getFrameSurfaceQueryParams
// Dependencies: [9344, 2]
// Exports: default
// Module 16985 (getFrameSurfaceQueryParams)
import FramesConstants from "FramesConstants" /* 9344 */;
import size from "module_2" /* 2 */;
const EmbeddedSurfaceType = FramesConstants.EmbeddedSurfaceType;
const result = size.fileFinishedImporting("modules/frames/utils/getFrameSurfaceQueryParams.tsx");
export default function getFrameSurfaceQueryParams(type) {
type = type.type;
if (EmbeddedSurfaceType.MAIN === type) {
return {};
} else {
if (tmp.APP_CHANNEL !== type) {
if (tmp.VOICE_CHANNEL !== type) {
return {};
}
}
const obj = { channel_id: type.channelId };
if (null != type.guildId) {
obj.guild_id = type.guildId;
}
return obj;
}
};