2026-09-17 08:17:09 +00:00
|
|
|
// Module ID: 16859
|
|
|
|
|
// Function ID: 16860
|
2026-09-12 13:45:10 +00:00
|
|
|
// Name: getFrameSurfaceQueryParams
|
2026-09-17 08:17:09 +00:00
|
|
|
// Dependencies: [9665, 2]
|
2026-09-12 13:45:10 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-17 08:17:09 +00:00
|
|
|
// Module 16859 (getFrameSurfaceQueryParams)
|
|
|
|
|
import FramesConstants from "FramesConstants" /* 9665 */;
|
2026-09-12 13:45:10 +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;
|
|
|
|
|
}
|
|
|
|
|
};
|