diff options
Diffstat (limited to 'src/discord/responses.ts')
| -rw-r--r-- | src/discord/responses.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/discord/responses.ts b/src/discord/responses.ts deleted file mode 100644 index 4dcc777..0000000 --- a/src/discord/responses.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { DiscordResponse } from "./interfaces.ts"; - -export class JSONResponse extends Response { - constructor(body: DiscordResponse | { error: string }, init?: ResponseInit) { - const jsonBody = JSON.stringify(body); - - init = init || { - headers: { - "content-type": "application/json;charset=UTF-8", - }, - }; - - super(jsonBody, init); - } -} |