Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
23 lines
1 KiB
TypeScript
23 lines
1 KiB
TypeScript
// Module ID: 17847
|
|
// Function ID: 17848
|
|
// Name: CreateInstantInviteUtils
|
|
// Dependencies: [4497, 4499, 1074, 2]
|
|
// Exports: getInvitableChannelForGuild
|
|
|
|
// Module 17847 (CreateInstantInviteUtils)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import GuildChannelStore_mod from "GuildChannelStore" /* 4497 */;
|
|
import PermissionStore from "PermissionStore" /* 4499 */;
|
|
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));
|
|
};
|