decord/alpha/source/modules/frames/utils/getFrameSurfaceQueryParams.tsx
github-actions f95a0071ef chore: update source for alpha 349.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-29 09:27:02 +00:00

29 lines
847 B
TypeScript

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