2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 18005
|
|
|
|
|
// Function ID: 18006
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: CreateInstantInviteUtils
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [2013, 4276, 1074, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getInvitableChannelForGuild
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 18005 (CreateInstantInviteUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import GuildChannelStore_mod from "GuildChannelStore" /* 2013 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import PermissionStore from "PermissionStore" /* 4276 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
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");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getInvitableChannelForGuild = function getInvitableChannelForGuild(guildId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channels = GuildChannelStore.getChannels(guildId);
|
|
|
|
|
const items = [...channels[closure_1_1]];
|
|
|
|
|
return items.find((channel) => PermissionStore.can(constants.CREATE_INSTANT_INVITE, channel.channel));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|