decord/alpha/source/utils/CreateInstantInviteUtils.tsx

26 lines
1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 18621
// Function ID: 18622
// Name: CreateInstantInviteUtils
2026-10-10 08:08:14 +00:00
// Dependencies: [4748, 4750, 1085, 2]
2026-07-20 16:05:17 +00:00
// Exports: getInvitableChannelForGuild
2026-10-13 12:43:34 +00:00
// Module 18621 (CreateInstantInviteUtils)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-10 08:08:14 +00:00
import GuildChannelStore_mod from "GuildChannelStore" /* 4748 */;
import PermissionStore from "PermissionStore" /* 4750 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let _window;
let map;
let GuildChannelStore = GuildChannelStore_mod;
2026-10-03 08:58:59 +00:00
({ 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");
2026-07-20 16:05:17 +00:00
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));
2026-07-20 16:05:17 +00:00
};