mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
Clean up unused imports
This commit is contained in:
@@ -16,24 +16,16 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { generateCode, randomString, route } from "@spacebar/api";
|
||||
import { randomString, route } from "@spacebar/api";
|
||||
import {
|
||||
Attachment,
|
||||
Channel,
|
||||
Config,
|
||||
emitEvent,
|
||||
GreetRequestSchema,
|
||||
Message,
|
||||
MessageCreateEvent,
|
||||
MessageType,
|
||||
Permissions,
|
||||
Sticker,
|
||||
UploadAttachmentRequestSchema,
|
||||
UploadAttachmentResponseSchema,
|
||||
User,
|
||||
} from "@spacebar/util";
|
||||
import { Request, Response, Router } from "express";
|
||||
import { In } from "typeorm";
|
||||
import { CloudAttachment } from "../../../../util/entities/CloudAttachment";
|
||||
import fetch from "node-fetch-commonjs";
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ import { Request, Response, Router } from "express";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import multer from "multer";
|
||||
import { handleMessage, postHandleMessage, route } from "../../../../../util";
|
||||
import { URL } from "url";
|
||||
|
||||
const router = Router();
|
||||
// TODO: message content/embed string length limit
|
||||
|
||||
@@ -47,8 +47,6 @@ import { HTTPError } from "lambert-server";
|
||||
import multer from "multer";
|
||||
import { FindManyOptions, FindOperator, LessThan, MoreThan, MoreThanOrEqual } from "typeorm";
|
||||
import { URL } from "url";
|
||||
import fetch from "node-fetch-commonjs";
|
||||
import { CloudAttachment } from "../../../../../util/entities/CloudAttachment";
|
||||
|
||||
const router: Router = Router();
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ import {
|
||||
handleFile,
|
||||
isTextChannel,
|
||||
trimSpecial,
|
||||
FieldErrors,
|
||||
ValidateName,
|
||||
} from "@spacebar/util";
|
||||
import crypto from "crypto";
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
import { Request, Response, Router } from "express";
|
||||
import { Role, Member } from "@spacebar/util";
|
||||
import { route } from "@spacebar/api";
|
||||
import {} from "typeorm";
|
||||
|
||||
const router: Router = Router();
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@ import {
|
||||
Guild,
|
||||
GuildTemplateCreateSchema,
|
||||
Member,
|
||||
Role,
|
||||
Snowflake,
|
||||
Template,
|
||||
} from "@spacebar/util";
|
||||
import { Request, Response, Router } from "express";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
import { route } from "@spacebar/api";
|
||||
import { Channel, Config, DmMessagesResponseSchema, Message, User } from "@spacebar/util";
|
||||
import { Config, DmMessagesResponseSchema, Message, User } from "@spacebar/util";
|
||||
import { Request, Response, Router } from "express";
|
||||
const router = Router();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
SettingsProtoUpdateSchema,
|
||||
UserSettingsProtos,
|
||||
} from "@spacebar/util";
|
||||
import { FrecencyUserSettings, PreloadedUserSettings } from "discord-protos";
|
||||
import { FrecencyUserSettings } from "discord-protos";
|
||||
import { JsonValue } from "@protobuf-ts/runtime";
|
||||
|
||||
const router: Router = Router();
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
WebhookUpdateSchema,
|
||||
Channel,
|
||||
handleFile,
|
||||
FieldErrors,
|
||||
ValidateName,
|
||||
} from "@spacebar/util";
|
||||
import { Request, Response, Router } from "express";
|
||||
|
||||
Reference in New Issue
Block a user