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-04-01 19:04:22 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-01 19:04:22 +1100
commit13dedb6d251593054de6a64487f0b053060afd5c (patch)
treec829b67068133911cbecdab1057e0d8a0fea09f3 /src/api/routes/channels/#channel_id/webhooks.ts
parentgatewayresponse?? (diff)
parentRemove ALL fosscord mentions (diff)
downloadserver-13dedb6d251593054de6a64487f0b053060afd5c.tar.xz
Merge branch 'master' into feat/refactorIdentify
Diffstat (limited to 'src/api/routes/channels/#channel_id/webhooks.ts')
-rw-r--r--src/api/routes/channels/#channel_id/webhooks.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts
index 31cae747..14791a1c 100644
--- a/src/api/routes/channels/#channel_id/webhooks.ts
+++ b/src/api/routes/channels/#channel_id/webhooks.ts
@@ -1,6 +1,6 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
-	Copyright (C) 2023 Fosscord and Fosscord Contributors
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
+	Copyright (C) 2023 Spacebar and Spacebar Contributors
 	
 	This program is free software: you can redistribute it and/or modify
 	it under the terms of the GNU Affero General Public License as published
@@ -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);