Allow subpath imports, move extensions to separate module

This commit is contained in:
Rory&
2026-06-11 18:07:50 +02:00
parent 758389d1f5
commit fe1c390973
18 changed files with 54 additions and 23 deletions
@@ -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 });
+1 -3
View File
@@ -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,
+2 -1
View File
@@ -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";