summary refs log tree commit diff
path: root/src/api/routes/channels/#channel_id/messages/#message_id
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/channels/#channel_id/messages/#message_id')
-rw-r--r--src/api/routes/channels/#channel_id/messages/#message_id/ack.ts4
-rw-r--r--src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts2
-rw-r--r--src/api/routes/channels/#channel_id/messages/#message_id/index.ts12
-rw-r--r--src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts4
4 files changed, 11 insertions, 11 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts
index 42c1c346..f098fa8e 100644
--- a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts
+++ b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts
@@ -21,9 +21,9 @@ import {
 	getPermission,
 	MessageAckEvent,
 	ReadState,
-} from "@fosscord/util";
+} from "@spacebar/util";
 import { Request, Response, Router } from "express";
-import { route } from "@fosscord/api";
+import { route } from "@spacebar/api";
 
 const router = Router();
 
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts
index d2ece163..909a459e 100644
--- a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts
+++ b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts
@@ -17,7 +17,7 @@
 */
 
 import { Router, Response, Request } from "express";
-import { route } from "@fosscord/api";
+import { route } from "@spacebar/api";
 
 const router = Router();
 
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts
index 62e18be4..cd4b243e 100644
--- a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts
+++ b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts
@@ -20,7 +20,7 @@ import {
 	Attachment,
 	Channel,
 	emitEvent,
-	FosscordApiErrors,
+	SpacebarApiErrors,
 	getPermission,
 	getRights,
 	Message,
@@ -31,11 +31,11 @@ import {
 	uploadFile,
 	MessageCreateSchema,
 	MessageEditSchema,
-} from "@fosscord/util";
+} from "@spacebar/util";
 import { Router, Response, Request } from "express";
 import multer from "multer";
-import { route } from "@fosscord/api";
-import { handleMessage, postHandleMessage } from "@fosscord/api";
+import { route } from "@spacebar/api";
+import { handleMessage, postHandleMessage } from "@spacebar/api";
 import { HTTPError } from "lambert-server";
 
 const router = Router();
@@ -163,14 +163,14 @@ router.put(
 		const snowflake = Snowflake.deconstruct(message_id);
 		if (Date.now() < snowflake.timestamp) {
 			// message is in the future
-			throw FosscordApiErrors.CANNOT_BACKFILL_TO_THE_FUTURE;
+			throw SpacebarApiErrors.CANNOT_BACKFILL_TO_THE_FUTURE;
 		}
 
 		const exists = await Message.findOne({
 			where: { id: message_id, channel_id: channel_id },
 		});
 		if (exists) {
-			throw FosscordApiErrors.CANNOT_REPLACE_BY_BACKFILL;
+			throw SpacebarApiErrors.CANNOT_REPLACE_BY_BACKFILL;
 		}
 
 		if (req.file) {
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts
index 5f86c966..eafa70c8 100644
--- a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts
+++ b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts
@@ -30,8 +30,8 @@ import {
 	PartialEmoji,
 	PublicUserProjection,
 	User,
-} from "@fosscord/util";
-import { route } from "@fosscord/api";
+} from "@spacebar/util";
+import { route } from "@spacebar/api";
 import { Router, Response, Request } from "express";
 import { HTTPError } from "lambert-server";
 import { In } from "typeorm";