UNPKG

valorant-api-types

Version:

A collection of documented endpoints and return types for the unofficial Valorant API

25 lines 918 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sendChatEndpoint = void 0; const zod_1 = require("zod"); const commonTypes_1 = require("../../../commonTypes"); exports.sendChatEndpoint = { name: 'Send Chat', description: 'Send a message to the specified group', category: ['Local Endpoints', 'Chat'], type: 'local', suffix: 'chat/v6/messages', method: 'POST', body: zod_1.z.object({ cid: zod_1.z.string().describe('The conversation ID of the group to send the message to'), message: zod_1.z.string(), type: zod_1.z.enum(['groupchat', 'chat', 'system']).describe('Use `chat` for whispers, `groupchat` for group messages, and `system` for system messages'), }), riotRequirements: { localAuth: true }, responses: { '200': commonTypes_1.chatMessagesSchema } }; //# sourceMappingURL=SendChat.js.map