diff --git a/README.md b/README.md index 4ee950e..d2b1a11 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,8 @@ Channel { name?: string | null, parent_id?: string | null, permissionOverwrites?: IOverwrite[], - deletedAt?: Date | null + deletedAt?: Date | null, + type: number } ``` diff --git a/package-lock.json b/package-lock.json index 0744f08..5ca9a3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@togethercrew.dev/db", - "version": "3.0.10", + "version": "3.0.28", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@togethercrew.dev/db", - "version": "3.0.10", + "version": "3.0.28", "license": "ISC", "dependencies": { "discord.js": "^14.7.1", diff --git a/package.json b/package.json index 5a19603..fd33fe5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@togethercrew.dev/db", - "version": "3.0.28", + "version": "3.0.29", "description": "All interactions with DB", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/interfaces/Channel.interface.ts b/src/interfaces/Channel.interface.ts index b7350ca..2bcda75 100644 --- a/src/interfaces/Channel.interface.ts +++ b/src/interfaces/Channel.interface.ts @@ -14,6 +14,7 @@ export interface IChannel { parentId?: string | null; permissionOverwrites?: IOverwrite[]; deletedAt?: Date | null; + type: number } export interface IChannelUpdateBody { @@ -21,6 +22,7 @@ export interface IChannelUpdateBody { parentId?: string | null; permissionOverwrites?: IOverwrite[]; deletedAt?: Date | null; + type?: number } export interface IChannelMethods { softDelete: () => void; diff --git a/src/models/schemas/Channel.schema.ts b/src/models/schemas/Channel.schema.ts index fa2119f..06e49fb 100644 --- a/src/models/schemas/Channel.schema.ts +++ b/src/models/schemas/Channel.schema.ts @@ -13,6 +13,9 @@ const channelSchema = new Schema({ parentId: { type: String, }, + type: { + type: Number, + }, permissionOverwrites: [ { id: String, // or use mongoose.Schema.Types.ObjectId if Snowflake is an ObjectId