decord/source/utils/CreateInstantInviteUtils.tsx
2026-09-01 10:26:29 +00:00

22 lines
915 B
TypeScript

// Module ID: 17378
// Function ID: 17379
// Name: getInvitableChannelForGuild
// Dependencies: [1982, 4121, 676, 2]
// Exports: getInvitableChannelForGuild
// Module 17378 (getInvitableChannelForGuild)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import comparator from "comparator" /* 1982 */;
import closure_2 from "comparator" /* 1982 */;
import closure_3 from "getUncachedChannelPermissions" /* 4121 */;
({ 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));
};