diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-24 19:04:51 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:24:37 -0400 |
commit | 787de501401cce38758a1fd60ac02bbc1fee40c1 (patch) | |
tree | 122a5cf2754d07d4885ea5b6c0355140513344f4 /src/api/routes/channels | |
parent | gifs and query params (diff) | |
download | server-787de501401cce38758a1fd60ac02bbc1fee40c1.tar.xz |
backfill missing query params
Diffstat (limited to 'src/api/routes/channels')
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/index.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index ddc42d28..3d6cc596 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -76,6 +76,22 @@ export function isTextChannel(type: ChannelType): boolean { router.get( "/", route({ + query: { + around: { + type: "string", + }, + before: { + type: "string", + }, + after: { + type: "string", + }, + limit: { + type: "number", + description: + "max number of messages to return (1-100). defaults to 50", + }, + }, responses: { 200: { body: "ChannelMessagesResponse", |