decord/beta/source/actions/ChannelCollapseActionCreators.tsx

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 10700
// Function ID: 10701
// Name: ChannelCollapseActionCreators
2026-10-07 22:43:51 +00:00
// Dependencies: [5071, 584, 6611, 2]
2026-10-07 22:43:51 +00:00
// Module 10700 (ChannelCollapseActionCreators)
import DispatcherDefault from "Dispatcher" /* 584 */;
import UserGuildSettingsManagerDefault from "UserGuildSettingsManager" /* 6611 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5071 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let obj = {
update(channelId) {
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "CHANNEL_COLLAPSE", channelId };
obj.dispatch(obj2);
},
toggleCollapseGuild(id) {
const obj = UserGuildSettingsManagerDefault;
const obj2 = { hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(id) };
2026-10-01 14:13:23 +00:00
const result = obj.saveUserGuildSettings(id, obj2);
const obj3 = DispatcherDefault;
const obj4 = { type: "GUILD_TOGGLE_COLLAPSE_MUTED", guildId: id };
obj3.dispatch(obj4);
}
};
2026-10-01 14:13:23 +00:00
let result = size.fileFinishedImporting("actions/ChannelCollapseActionCreators.tsx");
export default obj;