moved Constants and Errorhandler from api to util

This commit is contained in:
xnacly
2021-09-03 21:29:17 +02:00
parent afff55cb59
commit 7db26b5952
11 changed files with 104 additions and 48 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { Channel, ChannelPinsUpdateEvent, Config, emitEvent, getPermission, Message, MessageUpdateEvent } from "@fosscord/util";
import { Router, Request, Response } from "express";
import { HTTPError } from "lambert-server";
import { DiscordApiErrors } from "../../../util/Constants";
import { DiscordApiErrors } from "@fosscord/util";
const router: Router = Router();
@@ -3,7 +3,7 @@ import { check, Length } from "../../../util/instanceOf";
import { Channel, Config, getPermission, trimSpecial, Webhook } from "@fosscord/util";
import { HTTPError } from "lambert-server";
import { isTextChannel } from "./messages/index";
import { DiscordApiErrors } from "../../../util/Constants";
import { DiscordApiErrors } from "@fosscord/util";
const router: Router = Router();
// TODO: webhooks