decord/source/utils/CreateInstantInviteUtils.tsx

23 lines
915 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 17140
// Function ID: 17141
2026-07-20 16:05:17 +00:00
// Name: getInvitableChannelForGuild
2026-08-25 06:04:03 +00:00
// Dependencies: [1982, 4025, 676, 2]
2026-07-20 16:05:17 +00:00
// Exports: getInvitableChannelForGuild
2026-08-25 06:04:03 +00:00
// Module 17140 (getInvitableChannelForGuild)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
2026-08-25 06:04:03 +00:00
import comparator from "comparator" /* 1982 */;
import closure_2 from "comparator" /* 1982 */;
import closure_3 from "getUncachedChannelPermissions" /* 4025 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
({ GUILD_SELECTABLE_CHANNELS_KEY: c0, GUILD_VOCAL_CHANNELS_KEY: closure_1 } = comparator);
2026-08-24 06:08:38 +00:00
const Permissions = ME.Permissions;
const result = set.fileFinishedImporting("utils/CreateInstantInviteUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getInvitableChannelForGuild = function getInvitableChannelForGuild(guildId) {
2026-07-23 10:11:24 +00:00
channels = channels.getChannels(guildId);
2026-07-20 16:05:17 +00:00
const items = [...channels[closure_1]];
2026-08-24 06:08:38 +00:00
return items.find((channel) => closure_3.can(constants.CREATE_INSTANT_INVITE, channel.channel));
2026-07-20 16:05:17 +00:00
};