decord/beta/source/utils/CreateInstantInviteUtils.tsx
2026-10-01 14:13:23 +00:00

25 lines
1 KiB
TypeScript

// Module ID: 17623
// Function ID: 17624
// Name: CreateInstantInviteUtils
// Dependencies: [4467, 4469, 1074, 2]
// Exports: getInvitableChannelForGuild
// Module 17623 (CreateInstantInviteUtils)
import Constants from "Constants" /* 1074 */;
import GuildChannelStore_mod from "GuildChannelStore" /* 4467 */;
import PermissionStore from "PermissionStore" /* 4469 */;
import size from "module_2" /* 2 */;
let _window;
let map;
let GuildChannelStore = GuildChannelStore_mod;
({ GUILD_SELECTABLE_CHANNELS_KEY: _window, GUILD_VOCAL_CHANNELS_KEY: map } = GuildChannelStore);
GuildChannelStore = GuildChannelStore_mod;
const Permissions = Constants.Permissions;
const result = size.fileFinishedImporting("utils/CreateInstantInviteUtils.tsx");
export const getInvitableChannelForGuild = function getInvitableChannelForGuild(guildId) {
const channels = GuildChannelStore.getChannels(guildId);
const items = [...channels[closure_1_1]];
return items.find((channel) => PermissionStore.can(constants.CREATE_INSTANT_INVITE, channel.channel));
};