decord/source/utils/CreateInstantInviteUtils.tsx

23 lines
920 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 16536
// Function ID: 128837
2026-07-20 16:05:17 +00:00
// Name: getInvitableChannelForGuild
2026-07-23 10:11:24 +00:00
// Dependencies: [1907, 3758, 653, 2]
2026-07-20 16:05:17 +00:00
// Exports: getInvitableChannelForGuild
2026-07-24 07:16:23 +00:00
// Module 16536 (getInvitableChannelForGuild)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_2 from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import { Permissions } from "ME";
let closure_0;
let closure_1;
({ GUILD_SELECTABLE_CHANNELS_KEY: closure_0, GUILD_VOCAL_CHANNELS_KEY: closure_1 } = _isNativeReflectConstruct);
const result = require("ME").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-07-23 10:11:24 +00:00
return items.find((channel) => outer1_3.can(outer1_4.CREATE_INSTANT_INVITE, channel.channel));
2026-07-20 16:05:17 +00:00
};