From 095cbf7b2036bc35d9c3eabbdec8a5c6dfd67242 Mon Sep 17 00:00:00 2001
From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
Date: Fri, 31 Mar 2023 15:52:33 +1100
Subject: Remove ALL fosscord mentions
---
src/api/util/handlers/Instance.ts | 2 +-
src/api/util/handlers/Message.ts | 4 ++--
src/api/util/handlers/Voice.ts | 2 +-
src/api/util/handlers/route.ts | 6 +++---
4 files changed, 7 insertions(+), 7 deletions(-)
(limited to 'src/api/util/handlers')
diff --git a/src/api/util/handlers/Instance.ts b/src/api/util/handlers/Instance.ts
index bd9bf394..ccd56d92 100644
--- a/src/api/util/handlers/Instance.ts
+++ b/src/api/util/handlers/Instance.ts
@@ -16,7 +16,7 @@
along with this program. If not, see .
*/
-import { Session } from "@fosscord/util";
+import { Session } from "@spacebar/util";
export async function initInstance() {
// TODO: clean up database and delete tombstone data
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts
index 65dbcdfe..6172a3d0 100644
--- a/src/api/util/handlers/Message.ts
+++ b/src/api/util/handlers/Message.ts
@@ -41,10 +41,10 @@ import {
Sticker,
MessageCreateSchema,
EmbedCache,
-} from "@fosscord/util";
+} from "@spacebar/util";
import { HTTPError } from "lambert-server";
import { In } from "typeorm";
-import { EmbedHandlers } from "@fosscord/api";
+import { EmbedHandlers } from "@spacebar/api";
import * as Sentry from "@sentry/node";
const allow_empty = false;
// TODO: check webhook, application, system author, stickers
diff --git a/src/api/util/handlers/Voice.ts b/src/api/util/handlers/Voice.ts
index 0880ab98..db06bd33 100644
--- a/src/api/util/handlers/Voice.ts
+++ b/src/api/util/handlers/Voice.ts
@@ -16,7 +16,7 @@
along with this program. If not, see .
*/
-import { Config } from "@fosscord/util";
+import { Config } from "@spacebar/util";
import { distanceBetweenLocations, IPAnalysis } from "../utility/ipAddress";
export async function getVoiceRegions(ipAddress: string, vip: boolean) {
diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts
index b0bc3af7..604df4e9 100644
--- a/src/api/util/handlers/route.ts
+++ b/src/api/util/handlers/route.ts
@@ -21,7 +21,7 @@ import {
DiscordApiErrors,
EVENT,
FieldErrors,
- FosscordApiErrors,
+ SpacebarApiErrors,
getPermission,
getRights,
normalizeBody,
@@ -29,7 +29,7 @@ import {
Permissions,
RightResolvable,
Rights,
-} from "@fosscord/util";
+} from "@spacebar/util";
import { NextFunction, Request, Response } from "express";
import { AnyValidateFunction } from "ajv/dist/core";
@@ -91,7 +91,7 @@ export function route(opts: RouteOptions) {
req.rights = await getRights(req.user_id);
if (!req.rights || !req.rights.has(required)) {
- throw FosscordApiErrors.MISSING_RIGHTS.withParams(
+ throw SpacebarApiErrors.MISSING_RIGHTS.withParams(
opts.right as string,
);
}
--
cgit 1.5.1