diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-20 23:35:37 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-20 23:35:37 +0200 |
commit | ecc7683c02430cee57eac59bf2c9c64fe87b7091 (patch) | |
tree | 8f39ad0d7d0255d6da07cc088a47e01e748f97b7 /api/src | |
parent | :sparkles: add option to disable all rate limits (diff) | |
download | server-ecc7683c02430cee57eac59bf2c9c64fe87b7091.tar.xz |
:bug: fix unittests
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/util/route.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/util/route.ts b/api/src/util/route.ts index 5b06a2b5..e7c7ed1c 100644 --- a/api/src/util/route.ts +++ b/api/src/util/route.ts @@ -1,4 +1,4 @@ -import { DiscordApiErrors, Event, EventData, getPermission, PermissionResolvable, Permissions } from "@fosscord/util"; +import { DiscordApiErrors, EVENT, Event, EventData, getPermission, PermissionResolvable, Permissions } from "@fosscord/util"; import { NextFunction, Request, Response } from "express"; import fs from "fs"; import path from "path"; @@ -38,7 +38,7 @@ export interface RouteOptions { response?: RouteResponse; body?: any; path?: string; - event?: EventData | EventData[]; + event?: EVENT | EVENT[]; headers?: Record<string, string>; }; } |