Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
29 lines
847 B
TypeScript
29 lines
847 B
TypeScript
// Module ID: 16260
|
|
// Function ID: 16261
|
|
// Name: getFrameSurfaceQueryParams
|
|
// Dependencies: [8493, 2]
|
|
// Exports: default
|
|
|
|
// Module 16260 (getFrameSurfaceQueryParams)
|
|
import EmbeddedSurfaceType from "EmbeddedSurfaceType" /* 8493 */;
|
|
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(8493).EmbeddedSurfaceType.APP_CHANNEL !== type) {
|
|
if (tmp(8493).EmbeddedSurfaceType.VOICE_CHANNEL !== type) {
|
|
return {};
|
|
}
|
|
}
|
|
const obj = { channel_id: type.channelId };
|
|
if (null != type.guildId) {
|
|
obj.guild_id = type.guildId;
|
|
}
|
|
return obj;
|
|
}
|
|
};
|