2026-08-13 07:00:46 +00:00
|
|
|
// Module ID: 16667
|
|
|
|
|
// Function ID: 16668
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: handleChannelDelete
|
2026-08-13 07:00:46 +00:00
|
|
|
// Dependencies: [9758, 1913, 5301, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-13 07:00:46 +00:00
|
|
|
// Module 16667 (handleChannelDelete)
|
2026-07-29 08:29:29 +00:00
|
|
|
import "initialize";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function handleChannelDelete(channel) {
|
2026-08-13 07:00:46 +00:00
|
|
|
const result = require(9758) /* getNextPositionFromChannels */.removeFavoriteChannel(channel.channel.id, { trackAnalytics: false });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function handleCategoryCollapse(id) {
|
2026-08-13 07:00:46 +00:00
|
|
|
const result = require(9758) /* getNextPositionFromChannels */.setFavoriteCategoriesCollapsed(true, id.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function handleCategoryExpand(id) {
|
2026-08-13 07:00:46 +00:00
|
|
|
const result = require(9758) /* getNextPositionFromChannels */.setFavoriteCategoriesCollapsed(false, id.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function handleCategoryCollapseAll(guildId) {
|
|
|
|
|
if (obj.isFavoritesGuildId(guildId.guildId)) {
|
2026-08-13 07:00:46 +00:00
|
|
|
const result = require(9758) /* getNextPositionFromChannels */.setFavoriteCategoriesCollapsed(true);
|
|
|
|
|
const tmpResult = require(9758) /* getNextPositionFromChannels */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function handleCategoryExpandAll(guildId) {
|
|
|
|
|
if (obj.isFavoritesGuildId(guildId.guildId)) {
|
2026-08-13 07:00:46 +00:00
|
|
|
const result = require(9758) /* getNextPositionFromChannels */.setFavoriteCategoriesCollapsed(false);
|
|
|
|
|
const tmpResult = require(9758) /* getNextPositionFromChannels */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let prototype = function FavoriteManager() {
|
|
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
|
|
|
applyArgumentsResult.actions = { CHANNEL_DELETE: handleChannelDelete, CATEGORY_COLLAPSE: handleCategoryCollapse, CATEGORY_EXPAND: handleCategoryExpand, CATEGORY_COLLAPSE_ALL: handleCategoryCollapseAll, CATEGORY_EXPAND_ALL: handleCategoryExpandAll };
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}.prototype;
|
|
|
|
|
class prototype extends tmp2 {
|
|
|
|
|
}
|
|
|
|
|
prototype = new prototype();
|
|
|
|
|
let result = require("initialize").fileFinishedImporting("modules/favorites/FavoriteManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default prototype;
|