2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 16813
|
|
|
|
|
// Function ID: 16814
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: handleChannelDelete
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [15528, 10017, 1913, 5043, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 16813 (handleChannelDelete)
|
|
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import initializeDefault from "initialize" /* 5043 */;
|
|
|
|
|
import getNextPositionFromChannels from "getNextPositionFromChannels" /* 10017 */;
|
|
|
|
|
import items from "items" /* 15528 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function handleChannelDelete(channel) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getNextPositionFromChannels.removeFavoriteChannel(channel.channel.id, { trackAnalytics: false });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function handleCategoryCollapse(id) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getNextPositionFromChannels.setFavoriteCategoriesCollapsed(true, id.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function handleCategoryExpand(id) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getNextPositionFromChannels.setFavoriteCategoriesCollapsed(false, id.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function handleCategoryCollapseAll(guildId) {
|
|
|
|
|
if (obj.isFavoritesGuildId(guildId.guildId)) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getNextPositionFromChannels.setFavoriteCategoriesCollapsed(true);
|
|
|
|
|
const tmpResult = getNextPositionFromChannels;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function handleCategoryExpandAll(guildId) {
|
|
|
|
|
if (obj.isFavoritesGuildId(guildId.guildId)) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getNextPositionFromChannels.setFavoriteCategoriesCollapsed(false);
|
|
|
|
|
const tmpResult = getNextPositionFromChannels;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
function handleLogout() {
|
|
|
|
|
callback(closure_2);
|
|
|
|
|
}
|
|
|
|
|
({ NO_SUGGESTIONS: obj1, setFavoritesGuildSuggestions: c3 } = items);
|
2026-08-24 06:08:38 +00:00
|
|
|
initializeDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
let prototype = function FavoriteManager() {
|
|
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
2026-08-15 05:55:55 +00:00
|
|
|
applyArgumentsResult.actions = { CHANNEL_DELETE: handleChannelDelete, CATEGORY_COLLAPSE: handleCategoryCollapse, CATEGORY_EXPAND: handleCategoryExpand, CATEGORY_COLLAPSE_ALL: handleCategoryCollapseAll, CATEGORY_EXPAND_ALL: handleCategoryExpandAll, LOGOUT: handleLogout };
|
2026-07-29 08:29:29 +00:00
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}.prototype;
|
2026-08-15 05:55:55 +00:00
|
|
|
class prototype extends tmp3 {
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
prototype = new prototype();
|
2026-08-24 06:08:38 +00:00
|
|
|
let result = set.fileFinishedImporting("modules/favorites/FavoriteManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default prototype;
|