mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-04 04:31:53 +00:00
Allow subpath imports, move extensions to separate module
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
import { route } from "@spacebar/api";
|
||||
import { arrayRemove } from "@spacebar/extensions";
|
||||
import {
|
||||
Channel,
|
||||
emitEvent,
|
||||
@@ -29,7 +30,6 @@ import {
|
||||
MessageReactionRemoveEmojiEvent,
|
||||
MessageReactionRemoveEvent,
|
||||
User,
|
||||
arrayRemove,
|
||||
ReactionType,
|
||||
} from "@spacebar/util";
|
||||
import { Request, Response, Router } from "express";
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
*/
|
||||
|
||||
import { Router, Request, Response } from "express";
|
||||
import { DiscordApiErrors, Member, arrayPartition } from "@spacebar/util";
|
||||
import { arrayPartition } from "@spacebar/extensions";
|
||||
import { DiscordApiErrors, Member } from "@spacebar/util";
|
||||
import { route } from "@spacebar/api";
|
||||
|
||||
const router = Router({ mergeParams: true });
|
||||
|
||||
@@ -17,10 +17,9 @@
|
||||
*/
|
||||
|
||||
import { fillMessageUrlEmbeds, randomString } from "@spacebar/api";
|
||||
import { mathLogBase, arrayDistributeSequentially } from "@spacebar/extensions";
|
||||
import {
|
||||
Application,
|
||||
arrayDistributeSequentially,
|
||||
arrayPartition,
|
||||
Attachment,
|
||||
Channel,
|
||||
CloudAttachment,
|
||||
@@ -35,7 +34,6 @@ import {
|
||||
Guild,
|
||||
handleFile,
|
||||
HERE_MENTION,
|
||||
mathLogBase,
|
||||
Member,
|
||||
Message,
|
||||
MessageCreateEvent,
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { arrayDistinctBy, arrayGroupBy, Config, EmbedCache, emitEvent, Message, MessageUpdateEvent, normalizeUrl, OrmUtils, sleep } from "@spacebar/util";
|
||||
import { sleep, arrayDistinctBy, arrayGroupBy } from "@spacebar/extensions";
|
||||
import { Config, EmbedCache, emitEvent, Message, MessageUpdateEvent, normalizeUrl, OrmUtils } from "@spacebar/util";
|
||||
import { Embed, EmbedImage, EmbedType } from "@spacebar/schemas";
|
||||
import * as cheerio from "cheerio";
|
||||
import crypto from "node:crypto";
|
||||
|
||||
Reference in New Issue
Block a user