// Module ID: 13944 // Function ID: 13945 // Dependencies: [4281, 676, 8792, 13945, 8789, 2] // Module 13944 import set from "set" /* 2 */; import RPC_SCOPE_CONFIG from "RPC_SCOPE_CONFIG" /* 4281 */; import prototypeDefault from "prototype" /* 8789 */; import createRpcJoiSchemaObjectDefault from "createRpcJoiSchemaObject" /* 8792 */; import toggleVoiceChannelChat from "toggleVoiceChannelChat" /* 13945 */; import ME from "ME" /* 676 */; const RPCErrors = ME.RPCErrors; let obj = { scope: RPC_SCOPE_CONFIG.RPC_LOCAL_SCOPE, validation(boolean) { let obj = createRpcJoiSchemaObjectDefault(boolean); obj = { open: boolean.boolean() }; return obj.keys(obj); }, handler(args) { let obj = toggleVoiceChannelChat; const result = obj.toggleVoiceChannelChat(args.args.open); if (null == result) { obj = { errorCode: null }; obj[0] = RPCErrors.INVALID_CHANNEL; const tmp8 = new prototypeDefault(obj, "Not connected to a guild voice channel"); throw tmp8; } else { obj = { channel_id: null, chat_open: null }; ({ channelId: obj2[0], chatOpen: obj2[1] } = result); return obj; } } }; let result = set.fileFinishedImporting("modules/rpc/server/commands/voiceChannelChat.tsx"); export default { [ME.RPCCommands.TOGGLE_VOICE_CHANNEL_CHAT]: obj };