2026-09-21 19:31:18 +00:00
|
|
|
// Module ID: 16974
|
|
|
|
|
// Function ID: 16975
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: getFrameSurfaceQueryParams
|
2026-09-21 19:31:18 +00:00
|
|
|
// Dependencies: [9312, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-21 19:31:18 +00:00
|
|
|
// Module 16974 (getFrameSurfaceQueryParams)
|
|
|
|
|
import FramesConstants from "FramesConstants" /* 9312 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
};
|