diff options
| author | Fuwn <[email protected]> | 2025-09-24 18:14:30 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-24 18:14:30 -0700 |
| commit | 2d987046d094cf5eb784c8d79d678bd3efa5eaf9 (patch) | |
| tree | dd37d395961d9a68e3e1293a89fb46992aab88d1 /src/discord/responses.ts | |
| parent | style: Lint (diff) | |
| download | umabotdiscord-2d987046d094cf5eb784c8d79d678bd3efa5eaf9.tar.xz umabotdiscord-2d987046d094cf5eb784c8d79d678bd3efa5eaf9.zip | |
refactor: Move interactions client to packages directory
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); - } -} |