diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index 00e38239..6c759cd7 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -109,7 +109,7 @@ router.get("/", async (req: Request, res: Response) => { }; if (after) { - if (after > new Snowflake()) return res.status(422); + if (after > Snowflake.generate()) return res.status(422); query.where.id = MoreThan(after); } else if (before) {