decord/alpha/source/modules/channel/ChannelInfoActionCreators.tsx

23 lines
884 B
TypeScript
Raw Normal View History

// Module ID: 11736
// Function ID: 11737
// Name: ChannelInfoActionCreators
// Dependencies: [5496, 7774, 573, 2]
2026-07-20 16:05:17 +00:00
// Exports: fetchChannelInfo
// Module 11736 (ChannelInfoActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import GatewayConnectionStore from "GatewayConnectionStore" /* 5496 */;
import ChannelStatusStore from "ChannelStatusStore" /* 7774 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
const result = size.fileFinishedImporting("modules/channel/ChannelInfoActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const fetchChannelInfo = function fetchChannelInfo(guild_id) {
if (!ChannelStatusStore.hasRequestedStatuses(guild_id)) {
const obj2 = { type: "FETCH_CHANNEL_INFO", guildId: guild_id };
DispatcherDefault.dispatch(obj2);
const socket = GatewayConnectionStore.getSocket();
2026-07-23 10:11:24 +00:00
const channelInfo = socket.requestChannelInfo(guild_id, ["status", "voice_start_time"]);
2026-07-20 16:05:17 +00:00
}
};