techchrism / valorant-api-docs

Automatically generated documentation for Valorant API endpoints the client uses internally
https://valapidocs.techchrism.me
MIT License
488 stars 35 forks source link

[Type Improvement] System type is also possible #20

Closed tanishqmanuja closed 1 year ago

tanishqmanuja commented 1 year ago

https://github.com/techchrism/valorant-api-docs/blob/trunk/valorant-api-types/src/endpoints/local/chat/SendChat.ts#L15

After suggested enum

 body: z.object({
        cid: z.string().describe('The conversation ID of the group to send the message to'),
        message: z.string(),
        type: z.enum(['groupchat', 'chat', 'system']).describe('Use chat for whispers, groupchat for group messages or system for message visible only to you.')
    }),
techchrism commented 1 year ago

Thanks for pointing this out 👍