// Module ID: 13775 // Function ID: 13776 // Dependencies: [4206, 676, 10739, 13776, 10736, 2] // Module 13775 import ME from "ME"; const RPCErrors = ME.RPCErrors; let obj = { scope: require("RPC_SCOPE_CONFIG").RPC_LOCAL_SCOPE, validation(boolean) { let obj = importDefault(10739)(boolean); obj = { open: boolean.boolean() }; return obj.keys(obj); }, handler(args) { let obj = require(13776) /* toggleVoiceChannelChat */; const result = obj.toggleVoiceChannelChat(args.args.open); if (null == result) { obj = { errorCode: null }; obj[0] = RPCErrors.INVALID_CHANNEL; const tmp8 = new importDefault(10736)(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 = require("createRpcJoiSchemaObject").fileFinishedImporting("modules/rpc/server/commands/voiceChannelChat.tsx"); export default { [ME.RPCCommands.TOGGLE_VOICE_CHANNEL_CHAT]: obj };