Polarcraft/webv2/types/global.d.ts
Xeovalyte f9c13e5ada
All checks were successful
Build and Deploy / Deploy Web (push) Successful in 1m3s
Build and Deploy / Deploy Discord Bot (push) Successful in 43s
feat: Added team leave
2023-06-06 18:22:36 +02:00

44 lines
760 B
TypeScript

import { Document, Types } from 'mongoose'
export {}
declare global {
interface IUser extends Document {
_id: Types.ObjectId,
username: string,
usernameType: string,
discord: {
id: string,
username: string,
avatarHash: string
},
minecraft?: {
uuid: string,
username: string
},
teamInvites: string[],
role: {
admin: boolean,
moderator: boolean,
},
team?: ITeam,
accessToken?: string
}
interface IWhitelist {
_id: types.ObjectId,
uuid: string,
connected: boolean,
code: string
}
interface ITeam {
_id: types.ObjectId,
name: string,
color: string,
members: string[],
textChannelId: string,
voiceChannelId: string
}
}