mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-24 13:49:54 +00:00
Move more extensions to extensions
This commit is contained in:
@@ -20,7 +20,7 @@ import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm";
|
||||
import { DmChannelDTO } from "../../util/dtos";
|
||||
import { ChannelCreateEvent, ChannelRecipientRemoveEvent, ThreadCreateEvent, ThreadMembersUpdateEvent } from "../../util/interfaces";
|
||||
import { InvisibleCharacters, Snowflake, emitEvent, getPermission, trimSpecial, Permissions, Config, DiscordApiErrors } from "../../util/util";
|
||||
import { InvisibleCharacters, Snowflake, emitEvent, getPermission, Permissions, Config, DiscordApiErrors } from "../../util/util";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { Guild } from "./Guild";
|
||||
import { Invite } from "./Invite";
|
||||
@@ -35,6 +35,7 @@ import { Member } from "./Member";
|
||||
import { ChannelPermissionOverwrite, ChannelType, PublicChannel, PublicUserProjection, ThreadMetadata } from "@spacebar/schemas";
|
||||
import { OrmUtils } from "../../util/imports";
|
||||
import { ThreadMember } from "./ThreadMember";
|
||||
import { trimSpecial } from "@spacebar/extensions";
|
||||
|
||||
@Entity({
|
||||
name: "channels",
|
||||
|
||||
@@ -21,13 +21,14 @@ import { BeforeInsert, BeforeUpdate, Column, Entity, Index, JoinColumn, JoinTabl
|
||||
import { Ban, Channel, PublicGuildRelations } from "./index";
|
||||
import { ReadyGuildDTO } from "../../util/dtos";
|
||||
import { GuildCreateEvent, GuildDeleteEvent, GuildMemberAddEvent, GuildMemberRemoveEvent, GuildMemberUpdateEvent, MessageCreateEvent } from "../../util/interfaces";
|
||||
import { Config, emitEvent, DiscordApiErrors, Stopwatch } from "../../util/util";
|
||||
import { Config, emitEvent, DiscordApiErrors } from "../../util/util";
|
||||
import { BaseClassWithoutId } from "./BaseClass";
|
||||
import { Guild } from "./Guild";
|
||||
import { Message } from "./Message";
|
||||
import { Role } from "./Role";
|
||||
import { User } from "./User";
|
||||
import { AvatarDecorationData, Collectibles, DisplayNameStyle, PublicMember, PublicMemberProjection, UserGuildSettings } from "@spacebar/schemas";
|
||||
import { Stopwatch } from "@spacebar/extensions";
|
||||
|
||||
export const MemberPrivateProjection: (keyof Member)[] = [
|
||||
"id",
|
||||
|
||||
@@ -17,12 +17,13 @@
|
||||
*/
|
||||
|
||||
import crypto from "node:crypto";
|
||||
import { Column, CreateDateColumn, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn, RelationId } from "typeorm";
|
||||
import { randomUpperString } from "@spacebar/api";
|
||||
import { DateBuilder, TimeSpan } from "@spacebar/extensions";
|
||||
import { User } from "./User";
|
||||
import { BaseClassWithoutId } from "./BaseClass";
|
||||
import { Column, CreateDateColumn, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn, RelationId } from "typeorm";
|
||||
import { Activity, ClientStatus, GatewaySession, GatewaySessionClientInfo, PrivateStatus } from "../../util/interfaces";
|
||||
import { randomUpperString } from "@spacebar/api";
|
||||
import { DateBuilder, IpDataClient, TimeSpan } from "../../util/util";
|
||||
import { IpDataClient } from "../../util/util";
|
||||
|
||||
@Entity({
|
||||
name: "sessions",
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
import { Request } from "express";
|
||||
import { Column, Entity, JoinColumn, OneToMany, OneToOne } from "typeorm";
|
||||
import { Config, Email, FieldErrors, Snowflake, Stopwatch, trimSpecial } from "@spacebar/util";
|
||||
import { Random } from "@spacebar/util/util/Random";
|
||||
import { Config, Email, FieldErrors, Snowflake } from "@spacebar/util";
|
||||
import { Stopwatch, trimSpecial, Random } from "@spacebar/extensions";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { Channel } from "./Channel";
|
||||
import { ConnectedAccount } from "./ConnectedAccount";
|
||||
|
||||
Reference in New Issue
Block a user