decord/source/modules/channel/canJoinVoiceChannel.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

22 lines
786 B
TypeScript

// Module ID: 5377
// Function ID: 5378
// Name: canJoinVoiceChannel
// Dependencies: [1390, 673, 2]
// Exports: default
// Module 5377 (canJoinVoiceChannel)
import set from "set" /* 2 */;
import ME from "ME" /* 673 */;
import createChannelRecord from "createChannelRecord" /* 1390 */;
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;
};