decord/source/modules/frames/utils/getFrameSurfaceQueryParams.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

30 lines
832 B
TypeScript

// Module ID: 16859
// Function ID: 16860
// Name: getFrameSurfaceQueryParams
// Dependencies: [9665, 2]
// Exports: default
// Module 16859 (getFrameSurfaceQueryParams)
import FramesConstants from "FramesConstants" /* 9665 */;
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;
}
};