decord/source/utils/CreateInstantInviteUtils.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

22 lines
917 B
TypeScript

// Module ID: 17797
// Function ID: 17798
// Name: getInvitableChannelForGuild
// Dependencies: [2012, 4199, 1074, 2]
// Exports: getInvitableChannelForGuild
// Module 17797 (getInvitableChannelForGuild)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import comparator from "comparator" /* 2012 */;
import closure_2 from "comparator" /* 2012 */;
import closure_3 from "getUncachedChannelPermissions" /* 4199 */;
({ GUILD_SELECTABLE_CHANNELS_KEY: c0, GUILD_VOCAL_CHANNELS_KEY: closure_1 } = comparator);
const Permissions = ME.Permissions;
const result = set.fileFinishedImporting("utils/CreateInstantInviteUtils.tsx");
export const getInvitableChannelForGuild = function getInvitableChannelForGuild(guildId) {
channels = channels.getChannels(guildId);
const items = [...channels[closure_1]];
return items.find((channel) => closure_3.can(constants.CREATE_INSTANT_INVITE, channel.channel));
};