decord/source/modules/channel_permissions/native/ChannelPermissionsUtils.tsx

30 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10856
// Function ID: 84378
2026-07-20 16:05:17 +00:00
// Name: openAddMembersActionSheet
2026-07-27 11:26:19 +00:00
// Dependencies: [653, 675, 4099, 8222, 1935, 10857, 2]
2026-07-20 16:05:17 +00:00
// Exports: openAddMembersActionSheet, openChannelMembersActionSheet
2026-07-27 11:26:19 +00:00
// Module 10856 (openAddMembersActionSheet)
2026-07-23 10:11:24 +00:00
import { AnalyticEvents } from "ME";
const result = require("showActionSheet").fileFinishedImporting("modules/channel_permissions/native/ChannelPermissionsUtils.tsx");
2026-07-20 16:05:17 +00:00
export const openAddMembersActionSheet = function openAddMembersActionSheet(channel) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.OPEN_POPOUT, { type: "Grant Channel Access" });
2026-07-25 08:10:48 +00:00
const obj2 = importDefault(4099);
2026-07-20 16:05:17 +00:00
obj = { channel, canSkip: flag };
2026-07-25 08:10:48 +00:00
obj2.openLazy(require(1935) /* maybeLoadBundle */(8222, dependencyMap.paths), "channel-add-members-" + channel.id, obj);
2026-07-20 16:05:17 +00:00
};
export const openChannelMembersActionSheet = function openChannelMembersActionSheet(id, guild_id) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.OPEN_POPOUT, { type: "Manage Channel Access" });
2026-07-25 08:10:48 +00:00
const obj2 = importDefault(4099);
2026-07-20 16:05:17 +00:00
obj = { channelId: id, guildId: guild_id };
2026-07-27 11:26:19 +00:00
obj2.openLazy(require(1935) /* maybeLoadBundle */(10857, dependencyMap.paths), "channel-members-" + id, obj);
2026-07-20 16:05:17 +00:00
};