decord/source/modules/channel/canJoinVoiceChannel.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

22 lines
788 B
TypeScript

// Module ID: 5416
// Function ID: 5417
// Name: canJoinVoiceChannel
// Dependencies: [1961, 1074, 2]
// Exports: default
// Module 5416 (canJoinVoiceChannel)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import createChannelRecord from "createChannelRecord" /* 1961 */;
const isPrivate = createChannelRecord.isPrivate;
const BasicPermissions = ME.BasicPermissions;
const result = set.fileFinishedImporting("modules/channel/canJoinVoiceChannel.tsx");
export default function canJoinVoiceChannel(type, canBasicChannel) {
let canBasicChannelResult = isPrivate(type.type);
if (!canBasicChannelResult) {
canBasicChannelResult = canBasicChannel.canBasicChannel(BasicPermissions.CONNECT | BasicPermissions.VIEW_CHANNEL, type);
}
return canBasicChannelResult;
};