2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 18258
|
|
|
|
|
// Function ID: 18259
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: CreateInstantInviteUtils
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [2096, 4427, 1074, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: getInvitableChannelForGuild
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 18258 (CreateInstantInviteUtils)
|
|
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import GuildChannelStore_mod from "GuildChannelStore" /* 2096 */;
|
|
|
|
|
import PermissionStore from "PermissionStore" /* 4427 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
let GuildChannelStore = GuildChannelStore_mod;
|
|
|
|
|
({ GUILD_SELECTABLE_CHANNELS_KEY: closure_0, GUILD_VOCAL_CHANNELS_KEY: closure_1 } = GuildChannelStore);
|
|
|
|
|
let 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));
|
|
|
|
|
};
|