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

35 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10835
// Function ID: 10836
2026-07-20 16:05:17 +00:00
// Name: openAddMembersActionSheet
2026-08-24 06:08:38 +00:00
// Dependencies: [676, 698, 4346, 8894, 2008, 10836, 2]
2026-07-20 16:05:17 +00:00
// Exports: openAddMembersActionSheet, openChannelMembersActionSheet
2026-08-24 06:08:38 +00:00
// Module 10835 (openAddMembersActionSheet)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4346 */;
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 };
2026-08-24 06:08:38 +00:00
obj2.openLazy(asyncRequireImpl(8894, 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 };
2026-08-24 06:08:38 +00:00
obj2.openLazy(asyncRequireImpl(10836, dependencyMap.paths), "channel-members-" + id, obj);
2026-07-20 16:05:17 +00:00
};