Files
discord-decomp/sources/modules/channel/canJoinVoiceChannel.tsx
T
2026-07-27 16:20:00 +03:00

15 lines
1.1 KiB
TypeScript

/* Metro module 4808; source: modules/channel/canJoinVoiceChannel.tsx; dependencies: [1383, 661, 2] */
function _fun41646(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4986:6, offset: 0x01124c65, size: 129 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1383) /* metro dependency 1383: ChannelRecord */).isPrivate;
const env0_1 = (require(661) /* metro dependency 661: Constants */).BasicPermissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/canJoinVoiceChannel.tsx');
exports.default = canJoinVoiceChannel;
}
function canJoinVoiceChannel(a0, a1) { // fn#41647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4986:226, offset: 0x01124ce6, size: 62 bytes, params: 3, frame: 15
return isPrivate(a0.type) || a1.canBasicChannel(BasicPermissions.CONNECT | BasicPermissions.VIEW_CHANNEL, a0);
}