32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
// Module ID: 10050
|
|
// Function ID: 10051
|
|
// Name: useIsVoiceChannelFull
|
|
// Dependencies: [1908, 4120, 4497, 502, 586, 4666, 2]
|
|
// Exports: default, useIsVoiceChannelLocked
|
|
|
|
// Module 10050 (useIsVoiceChannelFull)
|
|
import closure_2 from "createGuildRecordFromRust" /* 1908 */;
|
|
import closure_3 from "getUncachedChannelPermissions" /* 4120 */;
|
|
import closure_4 from "updateVoiceState" /* 4497 */;
|
|
import { Permissions } from "sum" /* 502 */;
|
|
|
|
const require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/voice_calls/useIsVoiceChannelFull.tsx");
|
|
|
|
export default function useIsVoiceChannelFull(arg0) {
|
|
const _require = arg0;
|
|
const items = [closure_4, closure_2];
|
|
return _require(586).useStateFromStores(items, () => callback(closure_1_1[5]).isChannelFull(callback, closure_1_4, closure_1_2));
|
|
};
|
|
export const useIsVoiceChannelLocked = function useIsVoiceChannelLocked(channel) {
|
|
const _require = channel;
|
|
const items = [closure_3];
|
|
const items1 = [channel];
|
|
return _require(586).useStateFromStores(items, () => {
|
|
let tmp2 = null == closure_0;
|
|
if (!tmp2) {
|
|
tmp2 = !closure_1_3.can(closure_1_5.CONNECT, tmp);
|
|
}
|
|
return tmp2;
|
|
}, items1);
|
|
};
|