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

35 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 11613
// Function ID: 11614
2026-07-20 16:05:17 +00:00
// Name: openAddMembersActionSheet
// Dependencies: [1074, 1242, 4527, 9755, 1896, 11614, 2]
2026-07-20 16:05:17 +00:00
// Exports: openAddMembersActionSheet, openChannelMembersActionSheet
// Module 11613 (openAddMembersActionSheet)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4527 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/channel_permissions/native/ChannelPermissionsUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const openAddMembersActionSheet = function openAddMembersActionSheet(closure_0) {
2026-07-20 16:05:17 +00:00
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.OPEN_POPOUT, { type: "Grant Channel Access" });
2026-08-24 06:08:38 +00:00
const obj2 = ACTION_SHEET_HEIGHT_HALFDefault;
2026-07-29 08:29:29 +00:00
obj = { channel: closure_0, canSkip: flag };
obj2.openLazy(asyncRequireImpl(9755, dependencyMap.paths), "channel-add-members-" + closure_0.id, obj);
2026-07-20 16:05:17 +00:00
};
export const openChannelMembersActionSheet = function openChannelMembersActionSheet(id, guild_id) {
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.OPEN_POPOUT, { type: "Manage Channel Access" });
2026-08-24 06:08:38 +00:00
const obj2 = ACTION_SHEET_HEIGHT_HALFDefault;
2026-07-20 16:05:17 +00:00
obj = { channelId: id, guildId: guild_id };
obj2.openLazy(asyncRequireImpl(11614, dependencyMap.paths), "channel-members-" + id, obj);
2026-07-20 16:05:17 +00:00
};