summary refs log tree commit diff
path: root/src/api/routes/channels/#channel_id/webhooks.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-31 15:52:33 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-31 15:52:33 +1100
commit095cbf7b2036bc35d9c3eabbdec8a5c6dfd67242 (patch)
tree72bc2d6b975855c020e5dd9612a5113b4bf7c2e3 /src/api/routes/channels/#channel_id/webhooks.ts
parentRevert "Merge pull request #1008 from spacebarchat/dev/samuel" (diff)
downloadserver-095cbf7b2036bc35d9c3eabbdec8a5c6dfd67242.tar.xz
Remove ALL fosscord mentions
Diffstat (limited to 'src/api/routes/channels/#channel_id/webhooks.ts')
-rw-r--r--src/api/routes/channels/#channel_id/webhooks.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts
index d5dd2522..14791a1c 100644
--- a/src/api/routes/channels/#channel_id/webhooks.ts
+++ b/src/api/routes/channels/#channel_id/webhooks.ts
@@ -17,7 +17,7 @@
 */
 
 import { Router, Response, Request } from "express";
-import { route } from "@fosscord/api";
+import { route } from "@spacebar/api";
 import {
 	Channel,
 	Config,
@@ -27,10 +27,10 @@ import {
 	Webhook,
 	WebhookCreateSchema,
 	WebhookType,
-} from "@fosscord/util";
+} from "@spacebar/util";
 import { HTTPError } from "lambert-server";
 import { isTextChannel } from "./messages/index";
-import { DiscordApiErrors } from "@fosscord/util";
+import { DiscordApiErrors } from "@spacebar/util";
 import crypto from "crypto";
 
 const router: Router = Router();
@@ -63,7 +63,7 @@ router.post(
 
 		// TODO: move this
 		if (name === "clyde") throw new HTTPError("Invalid name", 400);
-		if (name === "Fosscord Ghost") throw new HTTPError("Invalid name", 400);
+		if (name === "Spacebar Ghost") throw new HTTPError("Invalid name", 400);
 
 		if (avatar) avatar = await handleFile(`/avatars/${channel_id}`, avatar);