diff --git a/package.json b/package.json index 28ea83e..8a3dea8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@togethercrew.dev/db", - "version": "3.0.40", + "version": "3.0.41", "description": "All interactions with DB", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/interfaces/Community.interface.ts b/src/interfaces/Community.interface.ts index 52b37dd..4f57902 100644 --- a/src/interfaces/Community.interface.ts +++ b/src/interfaces/Community.interface.ts @@ -1,11 +1,13 @@ import { type Model, type Types } from 'mongoose'; +import { type IGuildMember } from './GuildMember.interface'; +import { type IRole } from './Role.interface'; export interface ICommunityRoles { roleType: 'view' | 'admin'; source: { platform: 'discord'; identifierType: 'member' | 'role'; - identifierValues: string[]; + identifierValues: string[] | IGuildMember[] | IRole[]; platformId: Types.ObjectId; }; }