decord/stable/source/modules/voice_chat/VoiceChatHooks.tsx
github-actions 528a3dd5ba chore: update source for stable 345.9
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
2026-09-18 20:18:48 +00:00

29 lines
1.1 KiB
TypeScript

// Module ID: 9477
// Function ID: 9478
// Name: VoiceChatHooks
// Dependencies: [502, 4579, 504, 2]
// Exports: useIsConnectedToVoiceChannel, useIsConnectedToVoiceChannelForId
// Module 9477 (VoiceChatHooks)
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import VoiceStateStore from "VoiceStateStore" /* 4579 */;
const require = globalThis.__r;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/voice_chat/VoiceChatHooks.tsx");
export const useIsConnectedToVoiceChannel = function useIsConnectedToVoiceChannel(id) {
id = undefined;
if (id != null) {
id = id.id;
}
const items = [VoiceStateStore, AuthenticationStore];
return id(504).useStateFromStores(items, () => VoiceStateStore.isInChannel(id, AuthenticationStore.getId()));
};
export const useIsConnectedToVoiceChannelForId = function useIsConnectedToVoiceChannelForId(arg0) {
_require = arg0;
const items = [VoiceStateStore, AuthenticationStore];
return require("initialize").useStateFromStores(items, () => VoiceStateStore.isInChannel(id, AuthenticationStore.getId()));
};