decord/source/modules/guild_sidebar/native/ConnectedUserLimit.tsx

40 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-22 07:54:56 +00:00
// Module ID: 14856
// Function ID: 111956
2026-07-20 16:05:17 +00:00
// Name: ConnectedUserLimit
// Dependencies: [0, 0, 0, 4294967295, 0]
// Exports: ConnectedUserLimit
2026-07-22 07:54:56 +00:00
// Module 14856 (ConnectedUserLimit)
import "__exportStarResult1";
import { jsx } from "__exportStarResult1";
2026-07-20 16:05:17 +00:00
2026-07-22 07:54:56 +00:00
const result = require("__exportStarResult1").fileFinishedImporting("modules/guild_sidebar/native/ConnectedUserLimit.tsx");
2026-07-20 16:05:17 +00:00
export const ConnectedUserLimit = function ConnectedUserLimit(userCount) {
let channel;
let video;
({ channel, video } = userCount);
const limit = importDefault(dependencyMap[2])(channel).limit;
let num = -1;
if (channel.userLimit > 0) {
num = channel.userLimit;
}
if (video) {
video = limit > 0;
}
let tmp = num;
let flag = false;
if (video) {
let bound = limit;
if (num > 0) {
const _Math = Math;
bound = Math.min(num, limit);
}
tmp = bound;
flag = num < 0 || limit < num;
const tmp2 = num < 0 || limit < num;
}
const obj = { users: userCount.userCount, total: tmp, videoLimit: flag };
return jsx(importDefault(dependencyMap[3]), obj);
};